I have a OneSignal account hooked up to a Cordova/iOS app. I need to save the player id in my own database so I can send push notifications to specific users when tasks are due or events are happening.
I've looked at the API here: https://documentation.onesignal.com/reference#view-device but I don't know how to call a JavaScript function to save the identifier to a variable. There is no example of this.
Any help would be much appreciated.