If Android push notifications are not arriving on your test device, review these common configuration points:
- Incorrect Pushwoosh Application Code: Verify that the
com.pushwoosh.appid
metadata value in yourAndroidManifest.xml
exactly matches the Application Code of the specific application you configured in the Pushwoosh Control Panel. Using a different app's code (like the Demo App's code) will cause delivery failures.<!-- Inside the <application> tag in AndroidManifest.xml --> <meta-data android:name="com.pushwoosh.appid" android:value="YOUR_PUSHWOOSH_APP_CODE" />
- Incorrect Firebase Sender ID: Ensure the
com.pushwoosh.senderid
metadata value in yourAndroidManifest.xml
matches the Sender ID obtained from your Firebase project's Cloud Messaging settings.<!-- Inside the <application> tag in AndroidManifest.xml --> <meta-data android:name="com.pushwoosh.senderid" android:value="YOUR_FCM_SENDER_ID" /> <!-- Or reference it from strings.xml --> <meta-data android:name="com.pushwoosh.senderid" android:value="@string/fcm_sender_id" />
- Incomplete Platform Configuration: In the Pushwoosh Control Panel, navigate to your application's configuration page for the Android platform. Confirm that you have correctly provided your Firebase Server Key or uploaded the
google-services.json
file, as required by the integration guide. - Device Not Registered: Check your device's console logs when the app starts to confirm successful registration with Pushwoosh. You should also be able to find the registered device within the Audience section of the Pushwoosh Control Panel.
- Device/Network Issues: Ensure the test device has a stable internet connection. Check the Android system settings to confirm that notifications are enabled for your app and that background data or battery optimization settings are not preventing notification delivery.
- Incorrect Targeting: When sending a test message from the Pushwoosh Control Panel or API, double-check that you are targeting the correct device (e.g., by its Hardware ID - HWID) or a segment/tag that the device is subscribed to.
Comments
0 comments
Please sign in to leave a comment.