简体   繁体   English

如何检查用户是否在IOS6中安装了Google Maps?

[英]How to check whether the user has google maps installed in IOS6?

I tried searching hard, but to no avail. 我试着努力搜索,但无济于事。 In my app, that runs on an IOS6 device also, i have a MAP module that needs a Google map. 在我的应用程序中,它也在IOS6设备上运行,我有一个需要Google地图的MAP模块。 Now in IOS6 there can be devices which have iOS6 maps and not Google Maps. 现在,在IOS6中,可以有具有iOS6地图而非Google地图的设备。 So my Program has to check whether the device has google maps, application . 因此,我的程序必须检查设备是否具有google maps,application。 If not, it will link the user to the appStore to download the GoogleMaps app. 如果没有,它将把用户链接到appStore以下载GoogleMaps应用。 Please guide.. someone.. :( Thanks. 请指导..某人.. :(谢谢。

"You can use the comgooglemaps URL scheme to launch the Google Maps app for iPhone and perform searches, direction requests, and display map views. When you launch Google Maps your bundle identifier is automatically sent as part of the request." “您可以使用comgooglemaps URL方案启动iPhone的Google Maps应用,并执行搜索,方向请求和显示地图视图。启动Google Maps时,捆绑包标识符会作为请求的一部分自动发送。”

"Before you present one of these URLs to a user in your app you should first verify that the application is installed. Your app can check that the URL scheme is available with the following code: “在向您的应用程序中的用户提供这些URL之一之前,您首先应验证该应用程序已安装。您的应用程序可以使用以下代码检查URL方案是否可用:

[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"comgooglemaps://"]]; [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@“ comgooglemaps://”]];

"

https://developers.google.com/maps/documentation/ios/urlscheme https://developers.google.com/maps/documentation/ios/urlscheme

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

相关问题 检查用户是否喜欢ios中的链接 - check whether user has liked the link or not in ios 如何在iOS之前检查用户是否已经看过推送通知权限警报视图? - How to check whether user has seen the push notification permissions alert view before in iOS? 如何从 iOS 的电话设置中检查用户是否启用/检查了自动填充凭据提供程序扩展? - How to check whether user has enabled/checked autofill credential provider extension or not from phone settings in iOS? 如何使iOS6中的地图与iOS5相同 - How to make Maps in iOS6 same as iOS5 如何将谷歌地图添加到iOS6 SDK - How to add google map to ios6 sdk 如何确定iOS用户是否已安装应用程序? - How to determine if an iOS user has an app installed already? 如何检测用户是否通过JavaScript安装了特定的iPhone应用程序? - How can I detect whether a user has installed a specific iPhone app via JavaScript? iOS应用正在同步并安装在ios6中,但未安装在ios 5及更低版本中? - iOS app is syncing and installed in ios6, but not installed in ios 5 & below? 如何为iOS创建类似于Google Maps的用户卡动画 - how to create a user card animation like google maps for iOS 如何在Google Maps iOS SDK上显示用户位置 - How to show user location on Google Maps iOS SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM