Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17688] iOS8: Add ability to request Geo Location Permission

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-26T18:40:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsiOS
LabelsIOS8, ios
ReporterBen Bahrenburg
AssigneePedro Enrique
Created2014-09-14T01:24:07.000+0000
Updated2014-11-21T20:25:24.000+0000

Description

With iOS8 now there is the need to request specific geo location permissions. The PR for this method is here https://github.com/appcelerator/titanium_mobile/pull/6073 How to test this can be found here https://gist.github.com/benbahrenburg/4bcda636397cb095025f The API for this is pretty simple
Ti.Geolocation.requestAuthorization(Ti.Geolocation.AUTHORIZATION_ALWAYS);
or
Ti.Geolocation.requestAuthorization(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE);

Attachments

FileDateSize
Screen Shot 2014-09-18 at 11.15.37 AM.png2014-09-18T18:21:55.000+000058892

Comments

  1. Ingo Muschenetz 2014-09-14

    [~penrique] FYI
  2. Pedro Enrique 2014-09-15

    New PR, contains Ben's work plus some minor indentation fixes: https://github.com/appcelerator/titanium_mobile/pull/6082/
  3. Pedro Enrique 2014-09-15

    Backport to 3.4.x https://github.com/appcelerator/titanium_mobile/pull/6086
  4. Chee Kiat Ng 2014-09-16

    FR pass, both PRs merged
  5. Ingo Muschenetz 2014-09-16

    [~cng] Make sure to remove the merge-3.4.0 label and add the "Release 3.4.0" fix version (in the future).
  6. Olga Romero 2014-09-18

  7. Mark Mokryn 2014-10-15

    Seeing a problem with this when the app is backgrounded: 1. App starts, dialog pops up asking "Allow myapp to access your location while you use the app?" (Don't Allow/Allow) 2. Click screen lock or wait until it locks 3. Unlock the screen 4. The geolocation authorization dialog is gone, geolocation events don't fire Any ideas how to deal with this? Thanks
  8. Mark Mokryn 2014-10-15

    The above comment applies to iOS 8 simulator and device. iOS 7 simulator works fine - the dialog is there after screen unlock.
  9. Mark Mokryn 2014-10-15

    Update: this appears to be horrendous new behavior under iOS 8...... The Google Maps app also doesn't show the permission dialog after a screen lock.

JSON Source