Rotem Yakov Rotem Yakov - 1 year ago 252
Objective-C Question

OpenUrl not working on iOS10

My app uses openURL to open Google Maps app.
It works on iOS 9 but not on iOS 10.

I understand that this method was deprecated on iOS 10, and there's a new one with more parameters.
However, I saw everywhere that it should still work, and changing to the new method will only prevent a warning in the xCode.
I also want to still support iOS 9 and lower.

Any help?


Answer Source

Add LSApplicationQueriesSchemes key in info.plist file.


Use this....

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"comgooglemaps://"] options:@{} completionHandler:nil];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download