Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
109 stars 139 forks source link

Re-registering device fails on iOS #212

Closed fakir22 closed 7 years ago

fakir22 commented 7 years ago

Re-registering device on iOS has no effect. Steps to reproduce:

  1. call registerForPushNotifications (device is visible on dashboard counter and it's receiving notifications)
  2. call unregisterForPushNotifications at some point
  3. call registerForPushNotifications again

Result: device is never registered again until user uninstalls the app. Device doesn't appear on pushwoosh dashboard.

tehmooo commented 7 years ago

Same issue on phonegap build - register calls fine, but calling it again produces nothing

wfhm commented 7 years ago

Hi,

Could you please specify your plugin version?

fakir22 commented 7 years ago

Hi,

I use the last version 6.2.2 of pushwoosh plugin with latest version of Phonegap CLI (6.3.x)

tehmooo commented 7 years ago

6.2.3 for me, same phonegap cli - it was working for like 10 mins today, then wen't down the sh***\ again. Any thoughts? Trying to work out what's broken is driving me nuts.

shaders commented 7 years ago

This (https://github.com/Pushwoosh/pushwoosh-phonegap-plugin/commit/af9ea1a3df293be30457ae739e62e626ecec9425) should fix the problem. Please note that if there are any queues on the public API there might be slight delays in registering. As long as you see registerDevice being called in XCode logs - everything is fone.

fakir22 commented 7 years ago

Unfortunately it still doesn't work. Last version 6.4.0 of pushwoosh plugin with Phonegap 6.3.3

I waited over an hour but the device did not showed up again in the pushwoosh admin interface.