Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: calling requestPermission() returns array with boolean #1614

Closed
2 of 3 tasks
Redn4s opened this issue Dec 11, 2023 · 3 comments
Closed
2 of 3 tasks

[Bug]: calling requestPermission() returns array with boolean #1614

Redn4s opened this issue Dec 11, 2023 · 3 comments

Comments

@Redn4s
Copy link

Redn4s commented Dec 11, 2023

What happened?

When requesting the push permission on iOS the response is an array instead of a boolean.

OneSignal.Notifications.requestPermission(false).then((accepted) => {
	console.log(accepted); // [true] of [false]
});

Steps to reproduce?

1. Install v5.0.4 of react-native-onesignal
2. Call `requestPermission(false)`

What did you expect to happen?

I expect the requestPermission method to return a boolean instead of an array.

React Native OneSignal SDK version

5.0.4

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
@jennantilla
Copy link
Contributor

@Redn4s thanks for reaching out! We'll look into this!

@gpurbia
Copy link

gpurbia commented Aug 29, 2024

++

@jennantilla
Copy link
Contributor

Hello everyone! This is resolved in Release 5.2.3.

Thanks for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants