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

local-notifications: Android 13 asks for permissions after first app start #1321

Closed
nijakobius opened this issue Dec 9, 2022 · 2 comments
Closed

Comments

@nijakobius
Copy link

nijakobius commented Dec 9, 2022

Bug Report

Plugin(s)

@capacitor/local-notifications@4.1.3

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 4.6.1
  @capacitor/core: 4.6.1
  @capacitor/android: 4.6.1
  @capacitor/ios: 4.6.1

Installed Dependencies:

  @capacitor/cli: 4.6.1
  @capacitor/core: 4.6.1
  @capacitor/ios: 4.6.1
  @capacitor/android: 4.6.1

Platform(s)

Android 13. Other Android versions and iOS work fine.

Current Behavior

When launching the app for the first time, the following permission request pops up, even if I don't use any of the plugin's functions (like schedule a notification):

Allow XXX to send you notifications?

Expected Behavior

The dialogue should only appear after e.g. scheduling a notification or requesting the permission (like it does in iOS).

@jcesarmobile
Copy link
Member

If targeting SDK 32, the prompt appears when you (or a plugin) creates a notification channel.

If you target SDK 33, you can requests the permission whenever you want, but requesting the permission is not possible at the moment and won't be implemented until we start working on Capacitor 5.
You can subscribe to this issue #1135

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Jan 8, 2023

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 the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jan 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants