Prerequisites
Before you integrate the Mobile App Messaging SDK with your app, complete these steps.
Before you configure Marketing Cloud Next to send push notifications, set up the push notification services and download the required authentication files.
If you plan to send push notifications to iOS devices, log in to your Apple Developer account and download your authentication key. See Apple Developer Documentation: Set up push notifications.
Use the resulting .p8 file to configure the iOS settings in Marketing Cloud Next.
If you plan to send push notifications to Android devices, configure Google Firebase for your app. See Firebase Documentation: Add Firebase to your Android project.
As part of this configuration process, you download a Firebase configuration file. You use this file to configure the Android settings in Marketing Cloud Next.
To send messages to users of your app, enable Mobile App Messaging in Marketing Cloud Next.
- In Setup, select Unified Messaging > Mobile App > Your Apps.
- Next to Setup Mobile App Data with One Click, click Install.
- Next to Enable Custom Attributes for Device Registrations, click Enable.
Provide information about your app to Marketing Cloud Next, and then set up the notification services that you plan to use.
- In Setup, select Unified Messaging > Mobile App > Your Apps.
- Click Add Application.
- On the Add Application window, complete these steps:
- Click Next.
- For Application Name, enter a name.
- Click Save.
After you create an app, configure at least one sending service.
If your app runs on Apple iOS, configure the settings for Apple Push Notification service (APNs).
-
On the Sending Services tab, expand the iOS section.
-
For Environment Type, specify whether to use a Production or Sandbox environment.
-
For Key Type, specify whether to use an APNS p8 Auth Key or an APNS p12 Auth Key.
Apple recommends that you use a
.p8authentication key rather than a.p12authentication certificate. -
Click Upload Files, and then upload your APNs authentication key.
-
For Key ID, enter your key ID.
For more information about finding your key ID, see Apple Developer: Get a key identifier.
-
For Team ID, enter your team ID.
To find your Team ID, log in to your Apple Developer account and select Membership details.
-
For Bundle ID, enter the bundle ID associated with your app. The bundle ID is an alphanumeric string that uses reverse DNS notation, such as com.northerntrailoutfitters.app.
-
Click Save.
If your application has a version that runs on Android devices, configure the settings for Firebase Cloud Messaging (FCM).
- On the Sending Services tab, expand the Android section.
- Click Upload Files, and then upload your Firebase configuration file.
- Click Save.
If you plan to use create carousel messages for iOS devices, specify a category name. Specifying your category names helps ensure that your messages render correctly. When you create a carousel message template, you provide the category name. If you don’t plan to use carousel messages, skip this step.
- On the Categories tab, for iOS Carousel Category Name, enter a unique name.
- Click Save.