Configuration errors with Firebase Cloud Messaging (FCM) can prevent your app from registering for push notifications. These issues often stem from a mismatch between your Firebase project settings and the configuration within your Unity project.
Follow this checklist to ensure your configuration is correct:
Check Pushwoosh Resource Files: The Pushwoosh plugin includes its own resource files. Verify that the file at
Assets/Plugins/Android/pushwoosh-resources.androidlib/res/values/googleservices.xmlcontains your project's actual Firebase Sender ID. If you used a sample project as a template, this file might contain placeholder data that you need to replace manually.Verify
google-services.json:- Ensure the
google-services.jsonfile you downloaded from your Firebase project is placed correctly in your Unity project'sAssetsfolder. - Confirm that the
project_number(your Sender ID) andpackage_nameinside this file are correct.
- Ensure the
Align Pushwoosh & Firebase Settings:
- In your Firebase Console, make sure you have added an Android app to your project, and that its package name matches your Unity application's package name exactly.
- In the Pushwoosh Control Panel, navigate to your application's Android platform settings and confirm that the Package name and FCM Server Key match the values from the same Firebase project.
Comments
0 comments
Please sign in to leave a comment.