IntentProvider
PushMessageManager
PushMessagingService
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
com.salesforce.marketingcloud.pushfeature.push
Push Feature Module v2.0.0
Salesforce Marketing Cloud Unified SDK 11.0.0
1class PushMessagingService : FirebaseMessagingServiceA Firebase Cloud Messaging service implementation for handling push notifications within the PushFeature module.
This service extends FirebaseMessagingService to provide integration between Firebase Cloud Messaging and the PushFeature module, managing token refresh events and incoming push messages.
FirebaseMessagingService for FCM integrationThis service is managed by the Android system and Firebase SDK. It will be automatically started when FCM events occur.
1.0.0
FirebaseMessagingServicePushFeaturePushMessageManager1constructor()Default constructor for the service.
1open override fun onMessageReceived(message: RemoteMessage)Called when a new push message is received.
Parameters:
message: RemoteMessage - The incoming remote message from FCM1open override fun onNewToken(token: String)Called when a new FCM token is generated.
Parameters:
token: String - The new FCM registration tokenTo use this service in your Android application, add it to your AndroidManifest.xml:
1<service
2 android:name="com.salesforce.marketingcloud.pushfeature.push.PushMessagingService"
3 android:exported="false">
4 <intent-filter>
5 <action android:name="com.google.firebase.MESSAGING_EVENT" />
6 </intent-filter>
7</service>