@braze/react-native-sdk
Advanced tools
Changelog
5.2.0
subscribeToInAppMessage
is called prior to any Braze.addListener
calls.Changelog
5.1.0
BrazeDelegate
in the iOS bridge, allowing for custom implementations to be assigned to the braze
instance.Changelog
5.0.0
setSDKFlavor
and setMetadata
, which were no-ops starting from version 2.0.0
.
Braze.Configuration
object at SDK initialization.braze.xml
file.getNewsFeedCards()
and getContentCards()
where promises could be invoked more than once.Changelog
4.1.0
PushNotificationEvent
object introduced in 2.0.1
where a field was named context_text
instead of the correct value of content_text
.getFeatureFlag(id)
getAllFeatureFlags()
refreshFeatureFlags()
getFeatureFlagBooleanProperty(id, key)
getFeatureFlagStringProperty(id, key)
getFeatureFlagNumberProperty(id, key)
Braze.Events.FEATURE_FLAGS_UPDATED
for subscribing to Feature Flags updates.Changelog
4.0.0
braze
instance, without needing to call subscribeToInAppMessage()
. This updates the behavior from 2.0.0
to simplify integration.
Braze.Events.CONTENT_CARDS_UPDATED
to be a Braze.ContentCardsUpdatedEvent
object instead of a boolean.
Braze.ContentCardsUpdatedEvent
contains a cards
property which is an array of the Content Cards in the update.getContentCards()
and getNewsFeedCards()
returned data in a different format than the Android bridge.addListener
event types.Changelog
3.0.0
Starting with this release, this SDK will use Semantic Versioning.
2.0.0
when logging clicks for in-app messages, content cards, and news feed cards. Calling logClick
now only sends a click event for metrics, instead of both sending a click event as well as redirecting to the associated url
field.
Braze.logContentCardClicked(contentCard.id);
// Your own custom implementation
Linking.openUrl(contentCard.url);
1.x
and bring parity with Android's behavior.2.0.0
where getContentCards()
and getNewsFeedCards()
would return an array of cards with the url
and image
fields as null
.getContentCards
on the iOS bridge to initiate a refresh before returning the array of Content Cards. This brings parity with the Android bridge behavior.Changelog
2.1.0
'DEFINES_MODULE' => 'YES'
to the Cocoapod's xcconfig to remove the need for static framework linkage on iOS when using the Braze Expo plugin.Changelog
2.0.2
BrazeKit
or BrazeLocation
, you must use the #import <Module/Module-Swift.h>
syntax:
@import BrazeKit;
→ #import <BrazeKit/BrazeKit-Swift.h>
@import BrazeLocation;
→ #import <BrazeLocation/BrazeLocation-Swift.h>
Changelog
2.0.1
Changelog
2.0.0
react-native-appboy-sdk
to @braze/react-native-sdk
.AppboyReactBridge
and AppboyReactUtils
to BrazeReactBridge
and BrazeReactUtils
, respectively.0.68
or higher.configuration
object. Then, add this code to complete the setup:
let braze = BrazePlugin.initBraze(configuration)
changeUser
method on the Braze instance for non-anonymous users. You can read more about it here.SDWebImage
as a dependency, add this line to your project's /ios/Podfile
:
pod 'SDWebImage', :modular_headers => true
subscribeToInAppMessage()
or else follow these instructions to add it to your app.AppDelegate.mm
file.Braze.launchNewsFeed()
Braze.getCardCountForCategories()
Braze.getUnreadCardCountForCategories()
Braze.getNewsFeedCards()
Braze.logNewsFeedCardClicked()
Braze.logNewsFeedCardImpression()