iOS 上的 MobileFirst:启动 Google 地图并让用户 return

MobileFirst on iOS: start Google Maps and let user return

我在我的 MobileFirst 7.0 混合应用程序中使用 iOS 的标准地图协议:

<a href="http://maps.apple.com/?q=...">...</a>

Google 地图应用程序可以正确打开,但是无法 return 返回到我的应用程序。 iOS 应用程序列表显示我的应用程序图标和 Google 地图屏幕。 Google 地图 UI 没有返回 return 的退出按钮。我希望有两个独立的进程:我的应用程序和 Google 地图。

我是做错了什么还是故意的?如果是这样,应该如何处理这样的事情?

根据 Apple 指南,这将打开 Safari 或地图应用程序。它没有提及返回应用程序的任何内容,所以就是这样:https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html

编辑:但要使其在 Web 应用程序中运行,例如 IBM MobileFirst,该应用程序在应用程序内部的 WebView 中呈现,您 不应该按照 Apple 的指导方针使用 URL,例如:http://maps.apple.com?q=... 但仅 maps:q=....

通过使用第二个选项,实际的 Apple 地图应用将启动,而不是用 Google 地图替换您的应用。