Fatal error: Uncaught Kreait\Firebase\Exception\Messaging\NotFound:
The message could not be delivered to the device identified by 'ek4KIVQrQPeN6TnU1OzrKV:APA91bF3FUDRgXsLvfiddHpO9IHhRtuVgz66N1NzPu-m_4OehUNt3nh6vg7wHhGkwor5tsByIIQgJ5gqXT9Qg0grmVzWLaaj219O9Sz4MuzcMX26Obt-m9T2GmfVgupX0DoRdyfGJO6G'.
Although the token is syntactically correct, it is not known to the Firebase
project you are using. This could have the following reasons:
- The token has been unregistered from the project. This can happen when a user
has logged out from the application on the given client, or if they have
uninstalled or re-installed the application.
- The token has been registered to a different Firebase project than the project
you are using to send the message. A common reason for this is when you work
with different application environments and are sending a message from one
environment to a device in another environment.
in /home/aldomains/public_html/fcm/vendor/kreait/firebase-php/src/Firebase/Exception/Messaging/NotFound.php:40
Stack trace:
#0 /home/aldomains/public_html/fcm/vendor/kreait/firebase-php/src/Firebase/Messaging.php(58): Kreait\Firebase\Exception\Messaging\NotFound::becauseTokenNotFound('ek4KIVQrQPeN6Tn...', Array)
#1 /home/aldomains/public_html/fcm/index.php(28): Kreait\Firebase\Messaging->send(Object(Kreait\Firebase\Messaging\CloudMessage))
#2 {main}
thrown in /home/aldomains/public_html/fcm/vendor/kreait/firebase-php/src/Firebase/Exception/Messaging/NotFound.php on line 40