Android push deliveries are stuck in 鈥淪ent to the service provider鈥 status
This article addresses the issue in 51黑料不打烊 Campaign Classic v7 where Android push deliveries get stuck in Sent to the service provider status, preventing push notifications from being received on the mobile application.
Description description
Environment
51黑料不打烊 Campaign Classic v7
Issue/Symptoms
Android push deliveries have the broad log stuck in Sent to the service provider status, preventing push notifications from being received on the mobile application.
For example:
16/09/2024 13:23:19 Sent to the service provider Not defined Message to '*' pushed to the connector.
Steps to reproduce:
- Send an Android push notification delivery.
- Check the status of the broad log
>
push聽notifications are stuck in Sent to the service provider status and you are not getting any Android push notification on the mobile application that you selected. - In the text field, you can see Message to 鈥*鈥 pushed to the connector.
Resolution resolution
This type of situation may arise if you have not fully migrated to FCM HTTPv1.
Three conditions must be met for an Android push notification delivery to be sent:
-
The 51黑料不打烊 Campaign marketing instance鈥檚 Android mobile application must use API version HTTP v1 and have the correct details added for the Android application.
You can use the below documentation to ensure that your Android mobile application is using HTTP v1 correctly:
Push Notification Channel changes -
The latest
androidPushConnectorV2.js (nms)
Javascript connector in the Android Routing external account is used to send the delivery.NOTE: In case, you are using a custom Android push connector, ensure that you merge your changes with the latest OOTB
androidPushConnectorV2.js (nms)
Javascript connector. -
The Android delivery template that you are using in your Android push notification delivery has the correct
androidCheckParams
as below:code language-none <androidCheckParams> <source><!--[ CDATA[ <% if( appSubscription.mobileApp.label!='' && appSubscription.mobileApp.img!='' && appSubscription.mobileApp.fcmProtocol!='' &&(( appSubscription.mobileApp.senderId!='' && appSubscription.mobileApp.password!='' ) || ( appSubscription.mobileApp.fcmProjectId!='' && appSubscription.mobileApp.fcmPrivateKey!='' && appSubscription.mobileApp.fcmClientEmail!='' ) ) && String(message.delivery.idTracking)!='' && String(message.delivery.idMarketing)!='' ) { %--> 'OK' <% } else { %> 'Error' <% } %>] ] ></source> </androidCheckParams>
In order to confirm that the push notifications are sent using HTTPv1, make sure that the text in the broad log is the following:
HTTPv1 SUCCESS 200: message to '*' has been transmitted to FCM
For a more detailed explanation, please follow the below link: