Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Latest commit

 

History

History
35 lines (19 loc) · 2.59 KB

File metadata and controls

35 lines (19 loc) · 2.59 KB

Example

Setup

Install the Cocoapod

pod install

Configuration

(1) Locate your Factual Engine API Key from the Factual Engine Dashboard

Engine API Key

(2) Add your Factual Location Engine API Key to Configuration.m.

(3) Locate your Braze SDK API Key for your app from the Braze Dashboard in Developer Console under the APP SETTINGS tab. Go to Identification and use the API Key listed for your app.

(4) Add your Braze API Key to Info.plist

(5) Determine your Braze Endpoint and add it to Configuration.m.

(6) Enter a new User ID in Configuration.m at brazeUser and a test user email in Configuration.m at brazeUserEmail.

(7) -(optional)- Enable push notifications for this app. To do so, you must enable push notifications and configure your Apple Developer Account to allow push notifications.

Explore

From here, you can setup Braze to trigger actions based on Engine custom events. See here for an example of sending a push notification when a user is near a coffee shop.

Testing

If you'd like to test the integration, an example test is given. To run the test, fill out your information in StubConfiguration.m, change the testLatitude and testLongitude variables to coordinates of a place which would trigger your Engine Circumstance, and add your Braze Endpoint to the test's Info.plist