Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
109 stars 139 forks source link

missing pushToken on iOS #209

Closed mccraigmccraig closed 7 years ago

mccraigmccraig commented 7 years ago

i'm on

cordova 6.3.1 cordova ios 4.2.1 pushwoosh-cordova-plugin 6.2.1

sometimes my app isn't getting a pushToken from pushwoosh

my understanding thus far is that it happens when sequential app installs come from XCode and then TestFlight

removing the app completely and then re-installing makes the issue go away - the app gets a pushToken

any thoughts ?

thanks!

DimanAM commented 7 years ago

Is registerDevice error callback getting called? Have you enabled Push Notifications capability using XCode? TestFlight uses AdHoc provisioning profile thus it needs production aps-environment in project entitlements.

mccraigmccraig commented 7 years ago

apologies - this is a race condition in my code, nothing to do with pushwoosh plugin :blush: