简体   繁体   中英

How to Open Google Street View App from an another iOS App

To open the google maps iOS app using the following link as the reference https://developers.google.com/maps/documentation/ios-sdk/urlscheme .

I have a requirement to check and open the google street view iOS app. Please help me if anyone know the url scheme for it and how to check the google map in my device and open it using URL scheme.

Updated answer to reflect google street views app instead of google maps street view option

if ([[UIApplication sharedApplication] canOpenURL:
     [NSURL URLWithString:@"streetview://"]]) {
  NSLog(@"Google Street View is installed");
} else {
  NSLog(@"Google Street View is not installed");
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM