Learn how to create push messages for mobile apps with Platform Mobile SDK and Adobe Journey Optimizer.
Journey Optimizer allows you to create your journeys and send messages to targeted audiences. Before you send push notifications with Journey Optimizer, you must ensure that the proper configurations and integrations are in place. To understand the Push Notifications data flow in Adobe Journey Optimizer, please refer to the documentation.
This lesson is optional and only applies to Adobe Journey Optimizer users looking to send push messages.
In this lesson, you will:
The following steps are not Adobe Experience Cloud-specific and are designed to guide you through APN configuration.
.p8
private keyIn the Apple developer portal, navigate to Keys.
Select the + icon to create a key.
Provide a Key Name.
Select the APN checkbox.
Select Continue.
Review configuration and select Register.
Download the .p8
private key. It is used in the App Surface configuration.
Make note of the Key ID. It is used in the App Surface configuration.
Additional documentation can be found here.
Luma App Tutorial
.com.adobe.luma.tutorial
..p8
Apple Push Notification Authentication Key file.p8
auth key. It can be found under Keys tab in Certificates, Identifiers and Profiles page.CJM Push Tracking Experience Event Dataset
the Adobe Experience Platform dataset.If you don’t see “CJM Push Tracking Experience Event Dataset” as an option, please contact customer care.
As discussed in previous lessons, installing a mobile tag extension only provides the configuration. Next you must install and register the messaging SDK. If these steps aren’t clear, please review the Install SDKs section.
If you completed the Install SDKs section, then the SDK is already installed and you can skip to step #7.
Open your Podfile
and add the following line and save the file.
pod 'AEPMessaging', '~>1'
Open your terminal and navigate to the folder containing your Podfile
.
Install the SDK by executing the command pod install
.
Open XCode and navigate to AppDelegate.swift
.
Add the following to your list of imports.
import AEPMessaging
Add Messaging.self
to the array of extensions that you are registering.
Add the following function to the file.
func application(_: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
MobileCore.setPushIdentifier(deviceToken)
}
This function retrieves the device token unique to the device that the app is installed on and send to Adobe/Apple for push message delivery.
Next: Conclusion and next steps
Thank you for investing your time in learning about Adobe Experience Platform Mobile SDK. If you have questions, want to share general feedback, or have suggestions on future content, please share them on this Experience League Community discussion post