Edujugon / PushNotification

PHP and Laravel Package to send push notifications to Android and IOS devices.
MIT License
478 stars 159 forks source link

How specify sender id? #101

Open mara9303 opened 5 years ago

mara9303 commented 5 years ago

I got this error: {#1066 ▼ +"multicast_id": 4699082630223612812 +"success": 0 +"failure": 1 +"canonical_ids": 0 +"results": array:1 [▼ 0 => {#1064 ▼ +"error": "MismatchSenderId" } ] } And Firebase documentation says: A registration token is tied to a certain group of senders. When a client app registers for FCM, it must specify which senders are allowed to send messages. You should use one of those sender IDs when sending messages to the client app. If you switch to a different sender, the existing registration tokens won't work. https://firebase.google.com/docs/cloud-messaging/http-server-ref#error-codes