When sending to an invalid registration token, you should get 200 + error: InvalidRegistration :
Check the format of the registration token that you pass to the server. Make sure it matches the registration token that the client application receives from registration through Firebase notifications. Do not truncate or add additional characters.
This is the answer when you try to send a simple cURL request where the registration token is simply arbitrarily made:
curl --header "Authorization: key=$[your_server_key_here]" \
--header Content-Type:"application/json" \
https://fcm.googleapis.com/fcm/send \
-d "{\"registration_ids\":[\"ABC\"]}"
Note what I added in "ABC"
the parameter registration_ids
. If this is a valid registration token, but it is not related to your project, you will probably get 200 + error: NotRegistered .
, , dry_run
, true, .