[TIMOB-24675] iOS: Ti.Geolocation.hasLocationPermissions returns false for WHEN_IN_USE when ALWAYS is approved
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 6.0.4 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Rene Pot |
| Assignee | Unknown |
| Created | 2017-05-10T13:19:50.000+0000 |
| Updated | 2018-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.
We only pass the flags to the native API, so I guess Apple decides between both location-types. Let us check that anyway.