Repository navigation
Ask for 'always' location permissions, too - #1909
Conversation
|
👍 |
|
👍 Any way to write tests on this? |
Not with how location is set up right now in the tests, authorization is essentially overridden. |
|
At least, I thought so... tests on Travis legitimately failed: |
|
The relevant failing test, |
|
@friedbunny, that’s #1887. |
|
The current Travis failure doesn’t look related to #1887 after all. Any idea what’s going on? |
|
The failure |
|
Going to rebase and merge this, independently of tracking down #1930. |
355ac67 to
36f7f90
Compare
|
... except that now |
I thought that the tests were bypassing the permissions dialog, but it turns out that was only half correct: we were not actually asking for `always` location permission in MBGL.
36f7f90 to
4977858
Compare
|
Got the tests to pass on Travis (twice, IN A ROW), so this got mergezilla'd before my magic pixie dust wore off. |
If an iOS app only has the
NSLocationAlwaysUsageDescriptionkey, MBGL will never ask for location permission. This PR checks for bothalwaysandinUsepermission keys, then asks the user (with a preference for the less permissiveinUse)./cc @1ec5 @incanus @bleege