I need to open native iOS maps app from my app using below code:
NSString *urladdress = [NSString stringWithFormat:@"http://maps.apple.com/?q=%@",@"Texas,US"];
NSURL *url = [NSURL URLWithString:urladdress];
[[UIApplication sharedApplication] openURL:url];
And I have also configured .plist as shown in below image
When I run my code I found following error in my console as shown in below image
I have searched a lot of similar links in stack overflow like
iOS 9 safari iframe src with custom url scheme not working
iOS 9 custom URL scheme not working
Google Maps URL scheme not working on iOS 9
but I am not able to solve my issue.
I would like to request you all to solve my query or show me the right path whether I am going on wrong direction. IF any example in stack or in somewhere else which I have missed to refer please let me know.