Skip to content

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

@dogukankse

Description

@dogukankse

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions