You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the checkPermissions() and requestPermissions() only check for and enable the App permissions.
The device user can still have location services disabled - which is undetectable by this plugin.
On Android, location services are required to be enabled to do a Bluetooth scan request.
If location services are not available, the BLE stack does not generate any error messages but just
times out and discovers nothing (by design).
I want to be able to check whether location services have been disabled globally without trying to get an actual location because I actually don't want to request the user location at all.
Platform(s)
Android (primarily)
iOS (could be useful as well?)
Preferred Solution
Implement the solution from PR #589 as a callable plugin method, something along the lines of:
A similar requestLocatuinServices() method - which requests the user to enable location services - could be helpful as well.
Alternatives
As my use case is purely related to Bluetooth scanning, this could also be added in
plugin @capacitor-community/bluetooth-le
but the feature feels more at place in the actual geolocation plugin.
Additional Context
It seems that similar functionality may exist in some (outdated?) cordova plugins but I'm very
hesitant to pollute my project with duplicate and potentially outdated functionality.
Alternative suggestions are welcome though!
The text was updated successfully, but these errors were encountered:
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.
Feature Request
Plugin
@capacitor/geolocation
Description
Currently the
checkPermissions()
andrequestPermissions()
only check for and enable the App permissions.The device user can still have location services disabled - which is undetectable by this plugin.
On Android, location services are required to be enabled to do a Bluetooth scan request.
If location services are not available, the BLE stack does not generate any error messages but just
times out and discovers nothing (by design).
I want to be able to check whether location services have been disabled globally without trying to get an actual location because I actually don't want to request the user location at all.
Platform(s)
Preferred Solution
Implement the solution from PR #589 as a callable plugin method, something along the lines of:
A similar
requestLocatuinServices()
method - which requests the user to enable location services - could be helpful as well.Alternatives
As my use case is purely related to Bluetooth scanning, this could also be added in
plugin @capacitor-community/bluetooth-le
but the feature feels more at place in the actual geolocation plugin.
Additional Context
It seems that similar functionality may exist in some (outdated?) cordova plugins but I'm very
hesitant to pollute my project with duplicate and potentially outdated functionality.
Alternative suggestions are welcome though!
The text was updated successfully, but these errors were encountered: