Skip to content

Conversation

chochihim
Copy link
Contributor

@chochihim chochihim commented Sep 24, 2020

Summary

I need to know whether user has determined the notification permission (i.e. whether user has went through the "Don't Allow/Allow' permission modal)

Test Plan

What's required for testing (prerequisites)?

What are the steps to reproduce (after prerequisites)?

Run the /example and press "show enabled permissions".

Before this commit:

{
    "alert": true,
    "badge": true,
    "sound": true,
    "lockScreen": true, 
    "notificationCenter": true,
}

After commit:

{
    "alert": true,
    "badge": true,
    "sound": true,
    "lockScreen": true, 
    "notificationCenter": true,
    "authorizationStatus": 0,
}

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)

Copy link
Collaborator

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chochihim Looks good to me!

@Naturalclar Naturalclar merged commit d484730 into react-native-push-notification:master Oct 13, 2020
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

Successfully merging this pull request may close these issues.

2 participants