Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Distinguish between 'android' or 'ios' on registration event #418

Closed
tolomir opened this issue Dec 13, 2015 · 5 comments
Closed

Distinguish between 'android' or 'ios' on registration event #418

tolomir opened this issue Dec 13, 2015 · 5 comments

Comments

@tolomir
Copy link

tolomir commented Dec 13, 2015

Hi, I want to register APNToken and GCMToken separately depending on the device. Is there any way to make this difference in the registration event? In the 'data' parameter just comes the 'registrationId' but not the OS of the device.
Thanks!

@nicoabie
Copy link

No, for that you can use the cordova-plugin-device

@fredgalvao
Copy link
Collaborator

You can query the device plugin mentioned by @nicoabie so that you know which platform is associated with each registrationId.

@macdonst
Copy link
Member

@tolomir yes, please use cordova-plugin-device to determine what platform you are running on and respond accordingly.

@tolomir
Copy link
Author

tolomir commented Dec 14, 2015

Thank you all! @nicoabie @fredgalvao @macdonst

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants