Push Notifications

If you use the Cordova SDK default setup you won’t have to make any new changes client-side. For modified integrations, see the iOS integration instructions.

In-App Messaging

By default the Cordova SDK supports in-app messages with no changes. See the iOS integration instructions for information on customizing in-app messages. Furthermore, you can look at the sample Cordova application or the sample iOS application for implementation samples.

Analytics

Setting User IDs

See the iOS integration instructions for an in depth discussion of when to set and change a user ID.

1
 AppboyPlugin.changeUser("YOUR_USER_ID");

Logging Custom Events

See the iOS integration instructions for in depth discussion of event tracking best practices and interfaces.

1
2
3
var properties = {};
properties["KeyOne"] = "Val1";
AppboyPlugin.logCustomEvent("cordovaCustomEventWithProperties", properties);

Setting Custom Attributes

See the iOS integration instructions for in depth discussion of attribute tracking best practices and interfaces.

1
AppboyPlugin.setFirstName("firstName");

Logging Purchases

See the iOS integration instructions for in depth discussion of revenue tracking best practices and interfaces.

1
2
3
var properties = {};
properties["KeyOne"] = "ValueOne";
AppboyPlugin.logPurchase("testPurchaseWithNullCurrency", 10, null, 5, properties);

News Feed

See the iOS integration instructions for information on how to integrate the news feed into your Cordova app. Alternatively, our Cordova plugin provides a method, launchNewsFeed, that will launch a modal news feed without further integration.

The Braze Cordova SDK has several methods to get the number of read/unread News Feed cards for different categories. See our sample project implementation for an example.

You can look at the sample iOS application and sample Cordova application implementation samples.

Customer Feedback

See the iOS integration instructions for information on how to integrate the feedback form into your Cordova app. Alternatively, the Cordova plugin provides a launchFeedback method that will launch a modal feedback element over your application.

You can look at the sample iOS application and sample Cordova application implementation samples.

Setting a Custom API Endpoint

A custom API endpoint can be configured via the config.xml. For example, to use the EU endpoint, see the following:

1
2
3
4
    <platform name="ios">
        ...
        <preference name="com.appboy.ios_api_endpoint" value="sdk.fra-01.braze.eu" />
    </platform>
WAS THIS PAGE HELPFUL?