0

I have implemented push notifications via FCM and have to implement a third party product that uses apns for notifications, is there any way I can work with both at once, how can I get the apns token along with fcm token?

Ammar Tariq
  • 799
  • 2
  • 13
  • 29
  • 1
    It explained better here -> [ALs answer](https://stackoverflow.com/questions/50344633/firebase-cloud-function-messaging-with-apns-token-rather-than-fcm-token) – ankitjaiswal Apr 14 '20 at 16:37
  • I couldn't understand, can you please explain it a little bit here? – Ammar Tariq Apr 14 '20 at 16:45
  • So you can do the apns native integration in that way you will get the apns key but as per your requirement you also need FCM key. So you can use https://iid.googleapis.com/iid/v1:batchImport api to converts apns into FCM. Also I would recommend to use two different key in your backend database for apns and fcm. (Here is the documentation link: https://developers.google.com/instance-id/reference/server#create_registration_tokens_for_apns_tokens) – ankitjaiswal Apr 14 '20 at 17:21

0 Answers0