-
Notifications
You must be signed in to change notification settings - Fork 991
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
feat: Push notifications plugin does not have #areEnabled method #2683
Comments
There is a permissions plugin where you can check the permissions, or you can use the new requestPermissions that will prompt if not prompted before and return the result of the prompt, or you can use the LocalNotifications one since the result is the same as the underlying native framework is the same. |
yeah, it's not documented, I have it on my TODO list for the final 2.0 |
I found And also, yes, |
Oh okay. Thank you. |
Can I use the API in the Permissions plugin or is that planned to change? |
You can use it, it's been available for a long time, but just not documented |
the page was created when the plugin was implemented back in August, but was not added to the side menu, just added it |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Feature Request
Describe the Feature Request
The local notifications plugin features an
areEnabled
method. This would be useful for push notifications as well. On iOS this can be supported with:(https://developer.apple.com/documentation/usernotifications/unnotificationsettings/1648391-authorizationstatus)
Not sure about other platforms, but I suspect it's possible.
Platform Support Requested
Describe Preferred Solution
A method like
LocalNotifications#areEnabled()
The text was updated successfully, but these errors were encountered: