Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-25322] iOS: Improve new Ti.Geolocation authentication-flow #9537

Merged
merged 4 commits into from Oct 30, 2017

Conversation

hansemannn
Copy link
Collaborator

@hansemannn hansemannn added this to the 7.0.0 milestone Oct 19, 2017
@hansemannn hansemannn self-assigned this Oct 19, 2017
@hansemannn
Copy link
Collaborator Author

Reviewer-note: This PR has more changed line of code because #9458 was closed in favor of this one before it was merged, but the 6_3_X one was already.

@build
Copy link
Contributor

build commented Oct 19, 2017

Fails
🚫

🔬 There are library changes, but no changes to the unit tests. That's OK as long as you're refactoring existing code, but will require an admin to merge this PR. Please see README.md#unit-tests for docs on unit testing.

Generated by 🚫 dangerJS

@hansemannn
Copy link
Collaborator Author

hansemannn commented Oct 19, 2017

@sgtcoolguy Blocked here. UI-related logic-changes, so no unit-tests applicable.

Copy link
Contributor

@janvennemann janvennemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left a minor note on a warning message that i think is too long. Nothing serious. so approved anyway!

"\t// Handle authorization via e.success\n"
"})\nPicking the hightest permission by default.");
if ([TiUtils isIOS11OrGreater] && ![[NSBundle mainBundle] objectForInfoDictionaryKey:kTiGeolocationUsageDescriptionWhenInUse]) {
NSLog(@"[WARN] Apps targeting iOS 11 and later always have to include the \"%@\" key in the tiapp.xml <plist> section in order to use any geolocation-services. This is a constraint Apple introduced to improve user-privacy by suggesting developers to incrementally upgrade the location permissions from \"When in Use\" to \"Always\" only if necessary. You can specify the new iOS 11+ plist-key \"%@\" which is used while upgrading from \"When in Use\" to \"Always\". Use the the Ti.Geolocation.requestLocationPermissions method, which should be called before using any Ti.Geolocation related API. Please verify location permissions and call this method again.", kTiGeolocationUsageDescriptionWhenInUse, kTiGeolocationUsageDescriptionAlwaysAndWhenInUse);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either break this down into multiple lines/paragraphs or refer to the docs to make the message shorter.

@sgtcoolguy sgtcoolguy merged commit f86b735 into tidev:master Oct 30, 2017
@hansemannn hansemannn deleted the TIMOB-25322-NEW branch October 30, 2017 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants