react-native-appboy-sdk
Advanced tools
Comparing version 1.16.0 to 1.17.0
@@ -0,1 +1,16 @@ | ||
## 1.17.0 | ||
##### Breaking | ||
- Updated the native iOS bridge to [Braze iOS SDK 3.20.0](https://github.com/Appboy/appboy-ios-sdk/releases/tag/3.20.0). | ||
- **Important:** Braze iOS SDK 3.20.0 contains updated push token registration methods. We recommend upgrading to these methods as soon as possible to ensure a smooth transition as devices upgrade to iOS 13. In `application:didRegisterForRemoteNotificationsWithDeviceToken:`, replace | ||
``` | ||
[[Appboy sharedInstance] registerPushToken: | ||
[NSString stringWithFormat:@"%@", deviceToken]]; | ||
``` | ||
with | ||
``` | ||
[[Appboy sharedInstance] registerDeviceToken:deviceToken]]; | ||
``` | ||
- `ReactAppboy.registerPushToken()` was renamed to `ReactAppboy.registerAndroidPushToken()` and is now a no-op on iOS. On iOS, push tokens must now be registered through native methods. | ||
## 1.16.0 | ||
@@ -2,0 +17,0 @@ |
@@ -146,5 +146,7 @@ // Definitions by: ahanriat <https://github.com/ahanriat> | ||
* | ||
* No-op on iOS. | ||
* | ||
* @param {string} token - The device's push token. | ||
*/ | ||
export function registerPushToken(token: string): void; | ||
export function registerAndroidPushToken(token: string): void; | ||
@@ -151,0 +153,0 @@ /** |
@@ -136,6 +136,8 @@ const AppboyReactBridge = require('react-native').NativeModules.AppboyReactBridge; | ||
* | ||
* No-op on iOS. | ||
* | ||
* @param {string} token - The device's push token. | ||
*/ | ||
registerPushToken: function(token) { | ||
AppboyReactBridge.registerPushToken(token); | ||
registerAndroidPushToken: function(token) { | ||
AppboyReactBridge.registerAndroidPushToken(token); | ||
}, | ||
@@ -142,0 +144,0 @@ |
{ | ||
"name": "react-native-appboy-sdk", | ||
"version": "1.16.0", | ||
"version": "1.17.0", | ||
"description": "Braze SDK for React Native.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
159438
1993