A successful send status means Firebase Cloud Messaging (FCM) accepted the message for delivery to the device. What happens after that depends on the device and the app. When a push is accepted but never shown, the cause is almost always one of the following.
Common causes
-
Notifications are disabled for the app. The user has turned off notifications in the system settings. Such devices have the
Push Alerts Enabledtag set tofalse. - Aggressive battery saving. Some Android vendors restrict background apps and block notifications while the device is in power-saving mode.
- Do Not Disturb is on.
-
The app doesn't pass the message to the Pushwoosh SDK. Another
FirebaseMessagingService(for example, the defaultcom.google.firebase.messaging.FirebaseMessagingServiceor another SDK's) receives the message, or nothing handles it. If you use several FCM-based SDKs, set up a router service as described in Using Pushwoosh SDK with other FCM services. - The app isn't installed on the device, or the installed app isn't the one connected to your Pushwoosh project.
What to check
- Turn off battery optimization for the app, or power saving on the device.
- Make sure the app is allowed to show notifications, including pop-up (heads-up) notifications, and that Do Not Disturb is off.
- Send the push with high priority: set Delivery priority: High in the Android settings of the push preset, or add
"android_delivery_priority": "high"to your createMessage request. - Confirm that the app linked to your Pushwoosh project is installed on the device.
- Look up the device in User Explorer by HWID, User ID, or push token. Check its tags and the Received messages tab.
Still not showing?
Contact Pushwoosh Support. Include:
- the device's HWID, User ID, or push token;
- the message code;
- full, continuous device logs in a .txt file, recorded from app launch until after the push was sent. You can capture them with logcat in Android Studio. Keep the SDK log level at
DEBUGwhile recording (see Controlling log level) and see How can I obtain my Android device push token.
Comments
0 comments
Please sign in to leave a comment.