Skip to content
Back

Push message from the console fails

  • 0
  • Self Hosted
  • Flutter
  • Messaging
YahalomS
25 Feb, 2025, 19:40

I am trying to send a push message from the console to a push target created by my app.

I have just logged on to my app (flutter), it created a new target, The target Id is ID.unique() and the identifier of the target is the FCM token I generate before the createPushTarget.

When I try to send a message to that target (by selecting it from the available targets in the console (1.6.0, self-hosted),

It fails , and the error message is get is:

Failed sending to target {{tokenNumber}} with error: SenderId mismatch

The Token is the same token generated by the app.

I cannot understand where the SenderId is , I looked in the json file I imported info the push provider (projectId....firebase-adminsdk.....json), it is not there.

What am I missing?

TL;DR
Issue: Failing to send push message from console to push target in Flutter app with error "SenderId mismatch". Solution: The error message suggests a discrepancy in the SenderId. Double-check the SenderId in the console and ensure it matches the one in your app. The SenderId is not in the imported JSON file but is typically associated with your Firebase project configuration.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more