Cordova-plugin-firebase: Any way to get APNS token too?

Created on 16 Oct 2017  ·  3Comments  ·  Source: arnesson/cordova-plugin-firebase

We have a requirement to use APNS for some special messages that won't go through FCM. Anyone know if there is a way to get the APNS token as well as the FCM device id so we can store both?

Most helpful comment

If anyone else needs this functionality, I have a fork at https://github.com/poernahi/cordova-plugin-firebase/tree/twilio-integration that implements getAPNSToken

All 3 comments

I've had to quick hack for now due to time pressures. For anyone else looking for this, I've handled the didRegisterForRemoteNotificationsWithDeviceToken callback in AppDelegate+FirebasePlugin.m and fire that APNS token back from the plugin when it arrives.

If anyone else needs this functionality, I have a fork at https://github.com/poernahi/cordova-plugin-firebase/tree/twilio-integration that implements getAPNSToken

Thanks @poernahi , that's just what I needed.

Was this page helpful?
0 / 5 - 0 ratings