OneSignal-Unity-SDK icon indicating copy to clipboard operation
OneSignal-Unity-SDK copied to clipboard

[Bug]: fallbackToSettings TRUE shows go to settings alert on IOS

Open dogukankse opened this issue 1 year ago • 4 comments

What happened?

For version 5.0.5, when I initialize the SDK and call the permission request with fallbackToSettings: true, it always shows the 'your notifications are turned off, go to settings' prompt. In the settings app, notification permission is granted, and I can send push notifications to that device.

Steps to reproduce?

1. Install 5.0.5
2. init sdk like this  
  OneSignal.Initialize({oneSignalId});
  bool result = await OneSignal.Notifications.RequestPermissionAsync(true);
3. Accept permission
4. A new promt will show with this text "You currently have notifications turned off for this application. You can open
Settings to re-enable them"

What did you expect to happen?

Not seeing this alert because I accepted the notifications

Unity version

2022.3.6 LTS

OneSignal Unity SDK version

5.0.5

Platform

iOS

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

dogukankse avatar Jan 30 '24 14:01 dogukankse

Thanks for reporting, we will attempt to reproduce the issue and get back to you.

jkasten2 avatar Mar 07 '24 00:03 jkasten2

Same Here

Uaghazade1 avatar Jul 10 '24 01:07 Uaghazade1

@Uaghazade1 thanks for letting us know, could you also let us know which version of the OneSignal SDK you tested with?

jkasten2 avatar Jul 10 '24 02:07 jkasten2