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
Conversation
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. |
Generated by 🚫 dangerJS |
@sgtcoolguy Blocked here. UI-related logic-changes, so no unit-tests applicable. |
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
JIRA: https://jira.appcelerator.org/browse/TIMOB-25322