Send notification to FCM token generated by APNs

408 views
Skip to first unread message

stvnrad...@gmail.com

unread,
Apr 29, 2017, 10:44:23 AM4/29/17
to Firebase Google Group
Hi there,

has anyone had a issue to send notification to FCM registration token generated by APNs?
I want to send notification to FCM token that I catch from this API: `https://iid.googleapis.com/iid/v1:batchImport` but it says `BAD_REGISTRATION`. Mentioned API returns status OK and it seems that tokens are mapped but for some reason it won't work when I try to send notification.

Request:
{
   "application": "com.mobileapp.iphone",
   "sandbox": false,
   "apns_tokens": ["apn_token"]
}

Response:
{
  "results": [
    {
      "registration_token": "fcm_token",
      "apns_token": "apn_token",
      "status": "OK"
    }
  ]
}

Can anyone help please.

Thanks!

Kato Richardson

unread,
May 1, 2017, 3:33:27 PM5/1/17
to Firebase Google Group
Hello,

Generally, a BAD_REGISTRATION error would be accompanied by an error_description of some sort. See an example here. Logging that at the server might help quite a bit.

☼, Kato

P.S. If it's not offensive to your culture or beliefs, I'd encourage you to introduce yourself! We are a close-knit family. It's easier to keep that culture strong when we remember that there are real people on the other end of our emails. Getting to know one another by name is a great first step.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/44d3e963-b45f-495b-ba71-72cb129628b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages