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

fix(local-notification): Throw unavailable if Notification API not supported #285

Merged
merged 5 commits into from
Mar 3, 2021

Conversation

theproducer
Copy link
Contributor

During checkPermissions, check to see if the Notifications API is supported by the browser and throws unavailable if not.

Closes: #254

@Ionitron Ionitron added this to Needs review 🤔 in Capacitor Engineering ⚡️ Mar 2, 2021
Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

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

Looks good, but should be done in requestPermissions and on schedule too (maybe others too, but those two for sure)

@theproducer
Copy link
Contributor Author

Yeah, I think those two methods are it - most use of LocalNotification has to go through those three methods to do anything.

@theproducer theproducer merged commit a90a88b into main Mar 3, 2021
Capacitor Engineering ⚡️ automation moved this from Needs review 🤔 to Done 🎉 Mar 3, 2021
@theproducer theproducer deleted the local-notifications-web-ios-unsupported branch March 3, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

bug: Can't find variable: Notification on iOS
2 participants