Are you having problems with sending push notifications to “All Users”, “Targeted Users”, or “Test Devices”? This document will try help you resolve some common problems with push notifications.
To begin the process of finding the right solution to your problem, you should answer the following questions about the send failures:
Check if the failure happens:
From here, you can narrow down the possible causes of your problem.
You can see the reason for the error in both ‘Test Devices’ and ‘Report for Push Notifications’.
Go to App Settings -> Test Devices. And press the "SEND" button next to the device that has ran your push enabled game. If the push was successful, you will see a 'success' message flash on the screen. You will also see the push notification pop up on the device. If it was not successful, you will see an error message flash on the screen.
If the delivery rate for push sending is less than 100%, you can see the number of bounced pushes and the reasons by mousing over the "?" next to the "Delivery Rate".
**ERROR CODE** | **Solution** |
8 | The app has been already uninstalled from this device. Try installing the game on the device and make sure push notification has been enabled on the device. |
UnexpectedError | Sending failed due to an error that occurred in the APNS server. |
CERT\_EXPIRED | Push Certificate has been expired.Please renew the certificate in \[App Settings > Push\] page. [How to configure Push Certificates](https://dev.tapjoy.com/faq/how-to-configure-push-certificates/) |
CERT\_NOT\_PRESENT | Push Certificate does not exist.Please check \[App Settings > Push\] page. [How to configure Push Certificates](https://dev.tapjoy.com/faq/how-to-configure-push-certificates/) |
SSLError | Invalid certificate has been uploaded.Please make sure the cert file is for the production environment.
Do not use a passphrase to any files. |
NoPushToken | (Test Devices page only)There is no push token for this device. Make sure that you have installed push integrated app. [Debug Mode & Developer Console](https://dev.tapjoy.com/sdk-integration/ios/getting-started-guide-publishers-ios/#debug_mode_developer_console) |
**ERROR CODE** | **Solution** |
NotRegistered DEVICE\_UNREGISTERED | The app has been already uninstalled from this device. Try installing the game on the device and make sure push notification has been enabled on the device. |
MismatchSenderId BAD\_REGISTRATION | ‘GCM Sender ID’ in your code does not pair with the API key entered in the Tapjoy Dashboard. [How to find sender ID and api key for GCM](https://dev.tapjoy.com/faq/how-to-find-sender-id-and-api-key-for-gcm/)[Multiple Push Providers](https://dev.tapjoy.com/faq/multiple-push-providers/) |
UnexpectedErrorSERVICE\_UNAVAILABLE | Sending failed due to an error occurred in the GCM server. |
NoPushToken | (Test Devices page only)There is no push token for this device. Make sure that you have installed push integrated app. Please also check if you entered correct device id in \[App Settings > Test Devices\] page. You can find your device id in developer console. [Debug Mode & Developer Console](https://dev.tapjoy.com/sdk-integration/android/getting-started-guide-publishers-android/#debug_mode_developer_console) |
InvalidRegistration | Invalid token format.Please email your account manager for more information about this issue. |
CERT\_NOT\_PRESENT | Push Certificate does not exist.Please check \[App Settings > Push\] page. [How to find sender ID and api key for GCM](https://dev.tapjoy.com/faq/how-to-find-sender-id-and-api-key-for-gcm/) |
Recently, Google is not accepting none-restrict api key on the GCM side. If you get the error message when you try to save api key and sender id on the ltv dashboard, you have to import your google project on the firebase console.