Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24675] iOS: Ti.Geolocation.hasLocationPermissions returns false for WHEN_IN_USE when ALWAYS is approved

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.0.4
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterRene Pot
AssigneeUnknown
Created2017-05-10T13:19:50.000+0000
Updated2018-02-28T19:55:50.000+0000

Description

When you ask if permission has been given for "WHEN_IN_USE" with Ti.Geolocation.hasLocationPermissions when in fact "ALWAYS" has been approved you get false. But, technically, when the user approves "ALWAYS" both ALWAYS and WHEN_IN_USE are approved, not only ALWAYS, as we're still allowed to get geolocation when the app is in use.

Comments

  1. Hans Knöchel 2017-05-10

    We only pass the flags to the native API, so I guess Apple decides between both location-types. Let us check that anyway.

JSON Source