[
https://issues.apache.org/jira/browse/CB-10478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123428#comment-15123428
]
jcesarmobile commented on CB-10478:
-----------------------------------
Copying my answer on the mail you sent to the developer list, so whoever takes
the issue can know more about it:
The dialog you talk about is shown by the system when you try use the
CLLocationManager startUpdatingLocation and the permissions are off.
The way the geolocation plugin is built, it checks the permissions first, and
if they are off it doesn't call the CLLocationManager startUpdatingLocation.
So he is asking for a new feature on the geolocation plugin to force the use of
the CLLocationManager startUpdatingLocation even if the permissions are off.
This should trigger the system dialog he wants.
> getCurrentPosition should trigger system dialog for enabling location services
> ------------------------------------------------------------------------------
>
> Key: CB-10478
> URL: https://issues.apache.org/jira/browse/CB-10478
> Project: Apache Cordova
> Issue Type: Wish
> Components: Plugin Geolocation
> Environment: iOS, Android
> Reporter: Zarko Hristovski
> Labels: features
>
> The use case is when an app/user needs to access geoposition while
> device's location services are disabled. Let's say for the first time /
> attempt.
> While I've been able to find a way to send the user directly to the
> system setting on Android (via cordova-diagnostic-plugin's
> switchToLocationSettings),
> it seems to be no obvious way to achieve the same on iOS with the
> plugin(s) at present.
> I'll point you to two existing threads that explain in more detail so
> that I don't repeat myself here:
> -
> https://forum.ionicframework.com/t/ios-plugin-for-sending-user-to-settings-privacy-location-services
> - https://github.com/dpa99c/cordova-diagnostic-plugin/issues/31
> I thus suggest extending getCurrentPosition with an option for a better UX in
> case the device's location services are disabled. On iOS it should trigger
> the system dialog where the user is given a choice between "Settings" and
> "Cancel". "Settings" gives the user the possibility to go straight into
> Settings->Privacy->Location Services.
> I would suggest covering the same for Android, even thought this issue is
> concerned mainly with the UX on iOS.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]