phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.32k stars 1k forks source link

Get Push token outside ready #707

Open thomashrabe opened 7 years ago

thomashrabe commented 7 years ago

Is there a way to obtain the push token outside of device / platform ready? I want to access it later. From my understanding token should remain constant from push permission granted till app is deleted? Hence why not bind the token to the Push object as an attribute once it's set. This way it would be available throughout the code, outside of the ready function and one would not to have to set either global variables or localstorage.