Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to get APNS token too? #455

Closed
chrissterling opened this issue Oct 16, 2017 · 3 comments
Closed

Any way to get APNS token too? #455

chrissterling opened this issue Oct 16, 2017 · 3 comments

Comments

@chrissterling
Copy link

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?

@chrissterling
Copy link
Author

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.

@poernahi
Copy link

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

@WoollyMittens
Copy link

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

kprigel pushed a commit to KDPInnovations/cordova-plugin-firebase that referenced this issue Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants