The "SenderIDMismatch" error indicates that the Firebase Cloud Messaging (FCM) Sender ID configured in your application code or Pushwoosh Control Panel does not match the Sender ID associated with your Firebase project.
To resolve this:
- Verify your FCM Sender ID: Go to your Firebase Console, select your project, navigate to Project Settings > Cloud Messaging. Your Sender ID is listed there (it's the same as the "Project number").
- Check Pushwoosh Control Panel: Log in to your Pushwoosh account, go to your application, and navigate to the Android platform configuration settings. Ensure the Sender ID entered here exactly matches the one from your Firebase project.
- Check Application Code: In your Expo application's initialization code for Pushwoosh, ensure the
project_number
parameter matches your Firebase Sender ID. For example:import Pushwoosh from 'pushwoosh-expo-plugin'; Pushwoosh.init({ pw_appid: "YOUR_PUSHWOOSH_APP_ID", project_number: "YOUR_FCM_SENDER_ID" // Ensure this matches Firebase Project Number });
- Verify
google-services.json
(if applicable): Although initialization often uses theproject_number
directly in Expo, ensure thegoogle-services.json
file used during the build process (npx expo prebuild
) corresponds to the correct Firebase project and contains the matching Sender ID (project_number
).
Correcting any discrepancies in these locations should resolve the "SenderIDMismatch" error.
Comments
0 comments
Please sign in to leave a comment.