OneSignal / OneSignal-Cordova-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: `promptForPushNotificationsWithUserResponse` does not fire after a user tries to resubscribe on IOS

maxmandia opened this issue Β· comments

commented

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?

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