简体   繁体   中英

Cordova and Google Maps Javascript issue on iOS appstore

I'm facing an issue on publishing a Cordova app on IOS store.

I'm using "Maps JavaScript API" that refers to google map browser view.

As I publish the app the tech support (first and second level) refuse it multiple times due to this problem "app's location feature is not integrated with the built-in mapping functionality, which limits users to a third party Maps application. Revise your app to give users the option to launch the native Apple Maps application".

NOTE: I'm not talking about call the map application's device that is performed by:

if(device.platform == 'iOS')
  link = 'maps:q='+ item.address;

and produce this HTML:

<a href="maps:q=mylink.html">Click Here</a>

Can anyone suggest how to solve this issue? Documentation or examples are welcome.

Thanks

One way to do this is to use http://docs.phonegap.com/en/edge/cordova_geolocation_geolocation.md.html plugin so you can collect the devices coordinates, and before that send warning to user so he can allow you to use his position. You can find full example on the link.

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