Skip to content

[Bug]: Setting OneSignal.Notifications.requestPermission parameter fallbackToSettings to false has no effect #1727

@hrastnik

Description

@hrastnik

What happened?

When calling OneSignal.Notifications.requestPermission it's possible to pass a parameter fallbackToSettings which should control whether the in-app Open Settings prompt will display when the native prompt has been rejected. However, this parameter has no effect and the Open Settings prompt shows always

Steps to reproduce?

1. Call `await OneSignal.Notifications.requestPermission(false);`
2. The "Open Settings" prompt will show

What did you expect to happen?

The prompt should not show up.

React Native OneSignal SDK version

5.2.2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions