简体   繁体   English

如何从另一个iOS应用程序打开Goog​​le Street View应用程序

[英]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 . 要使用以下链接作为参考https://developers.google.com/maps/documentation/ios-sdk/urlscheme打开google maps iOS应用。

I have a requirement to check and open the google street view iOS app. 我需要检查并打开Goog​​le街景iOS应用。 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. 如果有人知道它的网址方案,以及如何在我的设备中检查Google地图并使用网址方案打开它,请帮助我。

Updated answer to reflect google street views app instead of google maps street view option 更新了答案以反映Google街景应用,而不是Google Maps街景选项

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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