react-native-appboy-sdk
Advanced tools
Comparing version 1.8.1 to 1.9.0
@@ -0,1 +1,20 @@ | ||
## 1.9.0 | ||
##### Breaking | ||
- Updated the native iOS bridge to [Braze iOS SDK 3.11.0](https://github.com/Appboy/appboy-ios-sdk/releases/tag/3.11.0). | ||
- Updated the native Android bridge to [Braze Android SDK 3.0.1](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#301). | ||
- Updated the Android wrapper to use `api` and `implementation` syntax in it's `build.gradle` instead of `compile`. As part of this work, the Android Gradle plugin version was updated to `3.2.1`. | ||
##### Added | ||
- Added `setUserAttributionData()` to the `Appboy` interface to allow setting the attribution data for the current user. | ||
- Added `getInstallTrackingId()` to the `Appboy` interface to allow getting the install tracking id. This method is equivalent to calling `Appboy.getInstallTrackingId()` on Android and returns the IDFV on iOS. | ||
- Added `setLanguage()` to the `Appboy` interface to allow setting a language for the current user. | ||
- Added `hideCurrentInAppMessage()` to the `Appboy` interface to allow hiding of the currently displayed in-app message. | ||
##### Fixed | ||
- Fixed an issue where the Android wrapper would include an older version of React Native in test APK builds. | ||
##### Changed | ||
- Updated our sample projects to use React Native `0.56`. | ||
## 1.8.1 | ||
@@ -2,0 +21,0 @@ |
45
index.js
@@ -60,2 +60,11 @@ const AppboyReactBridge = require('react-native').NativeModules.AppboyReactBridge; | ||
/** | ||
* Returns a unique device ID for install tracking. This method is equivalent to calling | ||
* Appboy.getInstallTrackingId() on Android and returns the IDFV on iOS. | ||
* @param {function(error, result)} callback - A callback that receives the function call result. | ||
*/ | ||
getInstallTrackingId: function(callback) { | ||
callFunctionWithCallback(AppboyReactBridge.getInstallTrackingId, [], callback); | ||
}, | ||
/** | ||
* When a user first uses Appboy on a device they are considered "anonymous". Use this method to identify a user | ||
@@ -239,2 +248,10 @@ * with a unique ID, which enables the following: | ||
/** | ||
* Sets the language for the user. | ||
* @param {string} language - Should be valid ISO 639-1 language code. | ||
*/ | ||
setLanguage: function(language) { | ||
AppboyReactBridge.setLanguage(language); | ||
}, | ||
/** | ||
* Sets the country for the user. | ||
@@ -378,2 +395,14 @@ * @param {string} country - Limited to 255 characters in length. | ||
/** | ||
* Sets user attribution data. | ||
* | ||
* @param {string} network - The attribution network | ||
* @param {string} campaign - The attribution campaign | ||
* @param {string} adGroup - The attribution adGroup | ||
* @param {string} creative - The attribution creative | ||
*/ | ||
setAttributionData: function(network, campaign, adGroup, creative) { | ||
AppboyReactBridge.setAttributionData(network, campaign, adGroup, creative); | ||
}, | ||
// News Feed | ||
@@ -476,2 +505,18 @@ /** | ||
// Refresh Content Cards | ||
/** | ||
* Requests a refresh of the content cards from Appboy's servers. | ||
*/ | ||
requestContentCardsRefresh: function() { | ||
AppboyReactBridge.requestContentCardsRefresh(); | ||
}, | ||
// Dismiss In App Message | ||
/** | ||
* Dismisses the currently displayed in app message. | ||
*/ | ||
hideCurrentInAppMessage: function() { | ||
AppboyReactBridge.hideCurrentInAppMessage(); | ||
}, | ||
// Enums | ||
@@ -478,0 +523,0 @@ CardCategory: { |
{ | ||
"name": "react-native-appboy-sdk", | ||
"version": "1.8.1", | ||
"version": "1.9.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
Sorry, the diff of this file is not supported yet
112235
1060