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

Detecting if nearby devices permission is enabled #487

Closed
tylerclark opened this issue Jan 30, 2023 · 4 comments
Closed

Detecting if nearby devices permission is enabled #487

tylerclark opened this issue Jan 30, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@tylerclark
Copy link

Is your feature request related to a problem? Please describe.
I was having trouble trying to figure out why my iOS app worked and my Android app did not. Turns out at some point the Android OS revoked the permission for "Nearby Devices" since there was a checkbox in the Settings > App called "Remove Permissions if app is unused".

Describe the solution you'd like
Is there a way to detect that the permission for Nearby devices has been removed?

Describe alternatives you've considered
Any other way to detect this?

@tylerclark tylerclark added the enhancement New feature or request label Jan 30, 2023
@pwespi
Copy link
Member

pwespi commented Feb 27, 2023

Thank you for this feature request. Currently checkPermissions is not implemented in this plugin, but it should be. I will take a look (but I'm very busy currently).

@pwespi pwespi self-assigned this Feb 27, 2023
@tylerclark
Copy link
Author

Thanks Patrick! Would love some sort of event listener so if somebody turns off bluetooth the UI does something or they turn on bluetooth something happens (probably more so this use case). Not sure if that is possible.

@pwespi
Copy link
Member

pwespi commented Feb 27, 2023

Thanks Patrick! Would love some sort of event listener so if somebody turns off bluetooth the UI does something or they turn on bluetooth something happens (probably more so this use case). Not sure if that is possible.

For this there is alreay https://github.com/capacitor-community/bluetooth-le#startenablednotifications

@pwespi
Copy link
Member

pwespi commented Apr 2, 2023

Closing this as duplicate of #445

@pwespi pwespi closed this as completed Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants