You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[edit] - original plugin version 6.2.2, upgraded to 6.4.0 and still experiencing the same issue
I have a simple interface for toggling notifications on/off. When off it calls unRegisterDevice() and when on it calls registerDevice()
At some point recently the registerDevice() function stopped working for repeated calls. When the app first loads, if the saved state (or default state) is to allow notifications, then the registerDevice() function works the first time. It registers the device properly, and my success callback is triggered. I also have an error callback in place, presumably that is called in case of an error.
Now when notifications are turned off unRegisterDevice() is called, and the callback is triggered.
If you want to turn notifications on, registerDevice() is called again but neither the success nor the error callbacks are triggered and the device is not registered to receive notifications.
For reference here is the function that toggles notifications on (with a bunch of debugging code in it)
When notifications are toggled off, and then on the console log looks like this:
As you can see my function is called, but there is nothing logged for the registerDevice() callbacks.
I logged the window.plugins.pushNotification object just to make sure it was what I expect it to be and it appears to be the pushwoosh plugin and lists the registerDevice prototype function. I'm at a loss to explain this but I really need a solution.
The text was updated successfully, but these errors were encountered:
As mentioned above unregisterForRemoteNotifications is broken on iOS10. To implement opt-in/out strategy simply create a tag "optin", set this tag when user opts-in for push notifications (or set it to null (unset) for opt-out) and then send push using this the filter with tag.
[edit] - original plugin version 6.2.2, upgraded to 6.4.0 and still experiencing the same issue
I have a simple interface for toggling notifications on/off. When off it calls unRegisterDevice() and when on it calls registerDevice()
At some point recently the registerDevice() function stopped working for repeated calls. When the app first loads, if the saved state (or default state) is to allow notifications, then the registerDevice() function works the first time. It registers the device properly, and my success callback is triggered. I also have an error callback in place, presumably that is called in case of an error.
Now when notifications are turned off unRegisterDevice() is called, and the callback is triggered.
If you want to turn notifications on, registerDevice() is called again but neither the success nor the error callbacks are triggered and the device is not registered to receive notifications.
For reference here is the function that toggles notifications on (with a bunch of debugging code in it)
When the device loads the console log shows as it should, with:
properly being logged.
When notifications are toggled off, and then on the console log looks like this:
As you can see my function is called, but there is nothing logged for the registerDevice() callbacks.
I logged the window.plugins.pushNotification object just to make sure it was what I expect it to be and it appears to be the pushwoosh plugin and lists the registerDevice prototype function. I'm at a loss to explain this but I really need a solution.
The text was updated successfully, but these errors were encountered: