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
When a user unsubscribes from push notifications we successfully see the user is unsubscribed in OneSignal, however, if we go to our app settings, we see that push notifications are still turned on.
After we perform the steps above, we try to re-subscribe the user using the following logic:
where we expect the user to be prompted to turn notifications on in there settings. However, nothing seems to be happening, and the user is still unsubscribed in OneSignal.
Steps to reproduce?
1. Install "onesignal-cordova-plugin": "^3.3.0"
2. Use a toggle with the code snippet above.
What did you expect to happen?
We excepted the user to be prompted to open their settings to turn notifications back on.
OneSignal Cordova SDK version
3.3.0
Which platform(s) are affected?
iOS
Android
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
@maxmandia You say that the user unsubscribes from push notifications but the permissions are still on. How is the user unsubscribing from push notifications? promptForPushNotificationsWithUserResponse is intended to set the value that you checked in the application settings, so since they still have permissions granted it won't do anything. If you are using the disablePush method then you should set that to false to resubscribe the user.
What happened?
Hi 👋
When a user unsubscribes from push notifications we successfully see the user is unsubscribed in OneSignal, however, if we go to our app settings, we see that push notifications are still turned on.
After we perform the steps above, we try to re-subscribe the user using the following logic:
OneSignal.promptForPushNotificationsWithUserResponse(true)
where we expect the user to be prompted to turn notifications on in there settings. However, nothing seems to be happening, and the user is still unsubscribed in OneSignal.
Steps to reproduce?
What did you expect to happen?
We excepted the user to be prompted to open their settings to turn notifications back on.
OneSignal Cordova SDK version
3.3.0
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: