taivo / parse-push-plugin

Push notification plugin for Cordova/Phonegap/ionic on Parse platform
118 stars 102 forks source link

Is there a way to obtain deviceToken after app starts? #71

Closed yingliangzhang closed 8 years ago

yingliangzhang commented 8 years ago

Hi,

I'm just wondering is it possible to obtain necessary device tokens after the app starts? The reason I'm asking is that I have many existing Android installations that don't have the deviceToken set on Parse, which seems like a bug in https://github.com/benjie/phonegap-parse-plugin that I was using. After switching to this one, new installations got deviceTokens stored. So if there is a way to get the deviceToken afterwards then I can set it to existing installations.

Thanks!

yingliangzhang commented 8 years ago

Never mind. I found the register function