Open maxmandia opened 9 months ago
@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