{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1506","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1506/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1506/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1506/events","html_url":"https://github.com/facebook/react-native/pull/1506","id":84815934,"number":1506,"title":"add backgroundMode to geolocation","user":{"login":"rt2zz","id":2302315,"avatar_url":"https://avatars.githubusercontent.com/u/2302315?v=3","gravatar_id":"","url":"https://api.github.com/users/rt2zz","html_url":"https://github.com/rt2zz","followers_url":"https://api.github.com/users/rt2zz/followers","following_url":"https://api.github.com/users/rt2zz/following{/other_user}","gists_url":"https://api.github.com/users/rt2zz/gists{/gist_id}","starred_url":"https://api.github.com/users/rt2zz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rt2zz/subscriptions","organizations_url":"https://api.github.com/users/rt2zz/orgs","repos_url":"https://api.github.com/users/rt2zz/repos","events_url":"https://api.github.com/users/rt2zz/events{/privacy}","received_events_url":"https://api.github.com/users/rt2zz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-03T23:27:05Z","updated_at":"2015-06-06T00:06:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/1506","html_url":"https://github.com/facebook/react-native/pull/1506","diff_url":"https://github.com/facebook/react-native/pull/1506.diff","patch_url":"https://github.com/facebook/react-native/pull/1506.patch"},"body":"This adds backgroundMode to the geolocation options. When `options.backgroundMode === true` for both gelocation.getCurrentPosition and gelocation.watchPosition:\r\n1. Enforce `NSLocationAlwaysUsageDescription` is set in Info.plist\r\n2. Requests `requestAlwaysAuthorization` as opposed to `requestWhenInUseAuthorization`"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/109486587","html_url":"https://github.com/facebook/react-native/pull/1506#issuecomment-109486587","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1506","id":109486587,"user":{"login":"frantic","id":192222,"avatar_url":"https://avatars.githubusercontent.com/u/192222?v=3","gravatar_id":"","url":"https://api.github.com/users/frantic","html_url":"https://github.com/frantic","followers_url":"https://api.github.com/users/frantic/followers","following_url":"https://api.github.com/users/frantic/following{/other_user}","gists_url":"https://api.github.com/users/frantic/gists{/gist_id}","starred_url":"https://api.github.com/users/frantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantic/subscriptions","organizations_url":"https://api.github.com/users/frantic/orgs","repos_url":"https://api.github.com/users/frantic/repos","events_url":"https://api.github.com/users/frantic/events{/privacy}","received_events_url":"https://api.github.com/users/frantic/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T00:06:27Z","updated_at":"2015-06-06T00:06:27Z","body":"IIRC @sahrens built the original implementation. Re: this PR, I think we\nshould be explicit about the platform, especially when Android has a\ndifferent model\nOn Wed, Jun 3, 2015 at 5:19 PM James Ide <notifications@github.com> wrote:\n\n> Android's permissioning is pretty different (coarse vs. fine updates\n> rather than background vs. foreground) so I think we should optimize for\n> iOS in this commit and clearly name the property something like\n> permissionTypeIOS.\n>\n> cc @frantic <https://github.com/frantic> are you the right person to take\n> a look at geolocation diffs (saw you were active on a few others)?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/facebook/react-native/pull/1506#issuecomment-108655302>\n> .\n>\n"}}