react-native-appboy-sdk
Advanced tools
Comparing version 1.10.0 to 1.11.0
@@ -0,1 +1,20 @@ | ||
## 1.11.0 | ||
##### Breaking | ||
- Updated the native Android bridge to [Braze Android SDK 3.2.0](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#320). | ||
- Added `AppboyFirebaseMessagingService` to directly use the Firebase messaging event `com.google.firebase.MESSAGING_EVENT`. This is now the recommended way to integrate Firebase push with Braze. The `AppboyFcmReceiver` should be removed from your `AndroidManifest` and replaced with the following: | ||
- ``` | ||
<service android:name="com.appboy.AppboyFirebaseMessagingService"> | ||
<intent-filter> | ||
<action android:name="com.google.firebase.MESSAGING_EVENT" /> | ||
</intent-filter> | ||
</service> | ||
``` | ||
- Also note that any `c2dm` related permissions should be removed from your manifest as Braze does not require any extra permissions for `AppboyFirebaseMessagingService` to work correctly. | ||
- Updated the native iOS bridge to [Braze iOS SDK 3.14.0](https://github.com/Appboy/appboy-ios-sdk/releases/tag/3.14.0). | ||
- Dropped support for iOS 8. | ||
##### Added | ||
- Added support for sending JavaScript `Date()` type custom event and purchase properties through the `Appboy` interface. | ||
## 1.10.0 | ||
@@ -2,0 +21,0 @@ |
22
index.js
@@ -142,6 +142,15 @@ const AppboyReactBridge = require('react-native').NativeModules.AppboyReactBridge; | ||
* characters in length, cannot begin with a $, and can only contain alphanumeric characters and punctuation. | ||
* Values can be numeric, boolean, or strings 255 characters or shorter. | ||
* Values can be numeric, boolean, Date, or strings 255 characters or shorter. | ||
*/ | ||
logCustomEvent: function(eventName, eventProperties) { | ||
AppboyReactBridge.setSDKFlavor(); | ||
for (var key in eventProperties) { | ||
if (eventProperties[key] instanceof Date){ | ||
var dateProp = eventProperties[key]; | ||
eventProperties[key] = { | ||
type: "UNIX_timestamp", | ||
value: dateProp.valueOf() | ||
} | ||
} | ||
} | ||
AppboyReactBridge.logCustomEvent(eventName, eventProperties); | ||
@@ -172,5 +181,14 @@ }, | ||
* characters in length, cannot begin with a $, and can only contain alphanumeric characters and punctuation. | ||
* Values can be numeric, boolean, or strings 255 characters or shorter. | ||
* Values can be numeric, boolean, Date, or strings 255 characters or shorter. | ||
*/ | ||
logPurchase: function(productId, price, currencyCode, quantity, purchaseProperties) { | ||
for (var key in purchaseProperties) { | ||
if (purchaseProperties[key] instanceof Date){ | ||
var dateProp = purchaseProperties[key]; | ||
purchaseProperties[key] = { | ||
type: "UNIX_timestamp", | ||
value: dateProp.valueOf() | ||
} | ||
} | ||
} | ||
AppboyReactBridge.logPurchase(productId, price, currencyCode, quantity, purchaseProperties); | ||
@@ -177,0 +195,0 @@ }, |
{ | ||
"name": "react-native-appboy-sdk", | ||
"version": "1.10.0", | ||
"version": "1.11.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
Sorry, the diff of this file is not supported yet
117353
1112