- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm actually updating an old application to the latest Cordova version (6.2.0) and I'm encountering problèmes with geo URI.
My URL is formed like that (bind to Href by Javascript (Knockout)) :
// iOS //url: "http://maps.apple.com/?q=" + data.latitude + "," + data.longitude // android // former url: 'geo:' + data.latitude + ',' + data.longitude + '?q='+ encodeURI(data.adresse) + '+' + encodeURI(data.cp) + '+' + encodeURI(data.ville) url: 'geo:' + data.latitude + ',' + data.longitude // Windows Phone //url: "bingmaps:?cp=" + data.latitude + "~" + data.longitude + "&collection=point." + data.latitude + "_" + data.longitude + "_" + encodeURI(data.enseigne)
Is it still working ?
I successed to open Gmaps via InAppBrowser but after I can't use the itinerary because it lanch an intent (http://intent://maps[...])
I tried with a simple html page to test on my device that kind of link in a browser and it works :
<html> <head> </head> <body> <a href="geo:47.51,-1.52">GEO</a> </body> </html>
I only use few plugins and only officials :
- Device 1.1.2
- Splashscreen 3.2.2
- Geolocation 2.2.0
- Compat 1.0.0
Cordova version 6.2.0 (also tried with 5.4.1)
Minimum Android API 14
Target Android API 19
I tried with and without Crosswalk (v19 & v18)
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You probably need to define some whitelist and/or CSP rules in your index.html file. Start here > https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for answering so late, It was that, adding CSP rule in whitelist solved my problem.
Thank you
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page