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

Notification Permission: unavailable #437

Open
OleTheDev opened this issue Apr 17, 2024 · 0 comments
Open

Notification Permission: unavailable #437

OleTheDev opened this issue Apr 17, 2024 · 0 comments

Comments

@OleTheDev
Copy link

OleTheDev commented Apr 17, 2024

Hello,

I'm having an issue after the user has accepted to receive notification, they get a followup alert with the title "Notification Permission" and inner text "unavailable".

When the user accepts I get the following return:
{"alert": true, "authorizationStatus": 2, "badge": true, "critical": false, "lockScreen": true, "notificationCenter": true, "sound": true}
I have added the Push Notification to Signing & Capabilities and all these steps that are needed.

This is how i'm requesting permissions:

const status = await PushNotificationIOS.requestPermissions();
console.log("status",status)
return status.authorizationStatus === 2;

Here is the alert I get after accepting to receive notifications:
Skjermbilde 2024-04-17 kl  09 19 40

Versions:
"@react-native-community/push-notification-ios": "^1.11.0",
"react-native": "0.69.3",

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

1 participant