react-native-appboy-sdk
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -0,1 +1,13 @@ | ||
## 1.10.0 | ||
##### Breaking | ||
- Updated the native Android bridge to [Braze Android SDK 3.1.0](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#310). | ||
##### Added | ||
- Added `addAlias(aliasName, aliasLabel)` to the `Appboy` interface to allow aliasing users. | ||
- Thanks @alexmbp! | ||
##### Changed | ||
- Updated `build.gradle` to use `project.ext` config if available. | ||
## 1.9.0 | ||
@@ -2,0 +14,0 @@ |
25
index.js
@@ -107,2 +107,21 @@ const AppboyReactBridge = require('react-native').NativeModules.AppboyReactBridge; | ||
/** | ||
* An alias serves as an alternative unique user identifier. Use aliases to identify users along different | ||
* dimensions than your core user ID: | ||
* * Set a consistent identifier for analytics that will follow a given user both before and after they have | ||
* logged in to a mobile app or website. | ||
* * Add the identifiers used by a third party vendor to your Braze users in order to more easily reconcile | ||
* your data externally. | ||
* | ||
* Note: Each alias consists of two parts: a name for the identifier itself, and a label indicating the type of | ||
* alias. Users can have multiple aliases with different labels, but only one name per label. | ||
* | ||
* @param {string} aliasName - An identifier for alias name. | ||
* @param {string} aliasLabel - An identifier for alias label. | ||
*/ | ||
addAlias: function(aliasName, aliasLabel) { | ||
AppboyReactBridge.setSDKFlavor(); | ||
AppboyReactBridge.addAlias(aliasName, aliasLabel); | ||
}, | ||
/** | ||
* This method posts a token to Appboy's servers to associate the token with the current device. | ||
@@ -251,5 +270,5 @@ * | ||
*/ | ||
setLanguage: function(language) { | ||
AppboyReactBridge.setLanguage(language); | ||
}, | ||
setLanguage: function(language) { | ||
AppboyReactBridge.setLanguage(language); | ||
}, | ||
@@ -256,0 +275,0 @@ /** |
{ | ||
"name": "react-native-appboy-sdk", | ||
"version": "1.9.0", | ||
"version": "1.10.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
114267
1082