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

Add authorization status for iOS #41

Merged
merged 1 commit into from
Mar 18, 2021
Merged

Conversation

cemozerr
Copy link
Contributor

I found it useful to know the authorization status before calling requestNotificationPermissions, because in my case I wanted to display a warning to the user so that their chances of approving the notification permission request is higher.

Thought it might be useful for other people as well. I can clean up the PR further if there is interest. (First time working with Swift so recommendations welcome as well.)

@szotp
Copy link
Contributor

szotp commented Mar 18, 2021

Hi sorry for the delay, thanks for first PR in this repo, I'll merge and maybe improve some things. Hope that's ok.

  1. I'll add enum for the status.
  2. I'll return Future from getAuthorizationStatus

@szotp szotp merged commit 2958df5 into mwaylabs:master Mar 18, 2021
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