I have integrated Mobile Push SDK (8.0.8) in my Android App. It is not able to receive push messages sent from Marketing Cloud Mobile Push. I am initializing the SDK in the onCreate of my Applicatinon class and have no other Push Provider integrated in the app. I followed the guidelines to troubleshoot push setup
The application is able to receive push directly from FCM by performing this test:
export FCM_SERVER_KEY=#Use value from Firebase console
curl --header "Authorization: key=$FCM_SERVER_KEY" \
--header Content-Type:"application/json" \
https://fcm.googleapis.com/fcm/send \
-d "{\"to\":\"$PUSH_TOKEN\",\"data\":{\"_m\":\"test_message\",\"alert\":\"It Worked!\",\"title\":\"Test Push\", \"_sid\":\"SFMC\"}}"
After that it says to wait for 5 minutes and then test for push, but I am not able to receive any Push Message at all.
I am using this rest API to send Push Messages- https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/postMessageAppSend.html?q=message%20app
Here are the logs from SDK-
MarketingCloudSdk V Marketing Cloud initialization successful.
MarketingCloudSdk I initConfig: MarketingCloudConfig(applicationId=xxxxx, accessToken=xxxx, senderId=xxxxx, marketingCloudServerUrl=https://xxxx.device.marketingcloudapis.com, mid=xxxxxx, analyticsEnabled=true, geofencingEnabled=false, inboxEnabled=true, piAnalyticsEnabled=false, proximityEnabled=false, markMessageReadOnInboxNotificationOpen=true, delayRegistrationUntilContactKeyIsSet=false, useLegacyPiIdentifier=true, notificationCustomizationOptions={smallIconResId=2131165301, launchIntentProvider=Application$$ExternalSyntheticLambda0, channelIdProvider=null}, proximityNotificationCustomizationOptions=null, urlHandler=Application@1a1d335, appPackageName=xxx.xxx.xxx.xxxx, appVersionName=1.0.0, predictiveIntelligenceServerUrl=https://xxxxx.json)
MarketingCloudSdk I initStatus: InitializationStatus(status=SUCCESS, unrecoverableException=null, locationsError=false, playServicesStatus=-1, playServicesMessage=null, encryptionChanged=false, storageError=false, proximityError=false, messagingPermissionError=false, sslProviderEnablementError=false, initializedComponents=[BehaviorManager, LifecycleManager, RequestManager, AlarmScheduler, SyncRoute, ControlChannel, ConfigComponent, LocationManager, ProximityManager, AnalyticsManager, InboxMessageManager, NotificationManager, RegionMessageManager, PushMessageManager, RegistrationManager, InAppMessageManager, Event], isUsable=true)
MarketingCloudSdk I RegistrationManager:
{
"current_registration": {
"deviceID": "xxxxxx",
"sdk_Version": "8.0.8",
"app_Version": "1.0.0 : 1",
"dST": false,
"location_Enabled": false,
"proximity_Enabled": false,
"platform_Version": "10",
"push_Enabled": true,
"timeZone": "19800",
"platform": "Android",
"hwid": "samsung SM-M305F",
"etAppId": "xxxxxx",
"locale": "en_GB",
"tags": [
"ALL",
"Android",
"DEBUG"
],
"attributes": []
}
}
MarketingCloudSdk I PushMessageManager:
{
"pushEnabled": true,
"pushPermissionsAllowed": true,
"debugInfo": {
"senderId": "xxxxxx",
"deviceToken": null,
"firebaseApps": [
"FirebaseApp{name=[DEFAULT], options=FirebaseOptions{applicationId=xxxxx, apiKey=xxxxxxx, databaseUrl=null, gcmSenderId=xxxxxxx, storageBucket=xxxx-xxxx.appspot.com, projectId=xxxx-xxxxx}}"
],
"c2dmReceiver": [
{
"name": "com.google.firebase.iid.FirebaseInstanceIdReceiver",
"priority": 0
}
],
"instanceIdService": [],
"messagingService": [
{
"name": "com.salesforce.marketingcloud.messages.push.MCFirebaseMessagingService",
"priority": -1
},
{
"name": "com.google.firebase.messaging.FirebaseMessagingService",
"priority": -500
}
]
}
}
MarketingCloudSdk I InApp Events: {
"triggers": []
}
~!MarketingCloudSdk V Control Channel blocked value 0 received
MarketingCloudSdk I Registration: Registration(id=0, signedString=null, deviceId=415632e7-a97d-4cc5-b15f-f57c05844f88, systemToken=e5HL2Pr1S2-M5euaSc__ew:APA91bFLcQs2TVWYRINBLvaLZJrHTewFZXNtvRkI8lqca2Swz6oZb_ISQqQHwXhvGMeqrhxXz24v7RQp3TLtp_UZ-TOi8N10m_jVtNV1pXe3BYLaoavWzEkGkPjGxjNxp8EXoSOFW5rH, sdkVersion=8.0.8, appVersion=1.0.0 : 1, dst=false, locationEnabled=false, proximityEnabled=false, platformVersion=10, pushEnabled=true, timeZone=19800, contactKey=null, platform=Android, hwid=samsung SM-M305F, appId=xxxxxxxx, locale=en_GB, tags=[ALL, Android, DEBUG], attributes={})
MarketingCloudSdk I TOKEN: e5HL2Pr1S2-M5euaSc__ew:APA91bFLcQs2TVWYRINBLvaLZJrHTewFZXNtvRkI8lqca2Swz6oZb_ISQqQHwXhvGMeqrhxXz24v7RQp3TLtp_UZ-TOi8N10m_jVtNV1pXe3BYLaoavWzEkGkPjGxjNxp8EXoSOFW5rH
~!MarketingCloudSdk V Control Channel blocked value 0 received
I am still confused what I am doing wrong here, any help in this regard would be appreciated.
P.S. - Preserving keys with 'xxxxx...'