Monaca Onsen UI Discord Chat Github Repo

HTML5 Hybrid app, how to open location in user's default map app



  • Hi!
    I am creating an hybrid HTML5 app to use in iOS and Android. I am testing it with Monaca Debugger in both OS.
    In my app I have links to open in other apps.
    One for maps: I have a list with some places with a button to see each location in a map. I am fine if the location is opened in the user default maps app. So I simply put geo link like <a href=“geo:124.028582,-29.201930” target="_blank">Click here for map</a>, and it works fine in Monaca Debugger for Android (it opens Google Maps App), but I get a “ReferenceError: Can’t find variable: js” in Monaca Debugger for iOS.
    As I am a new Monaca user, I don’t know if I am doing something wrong or may be this kind of functionalities are not supported in Monaca Debugger for iOS.
    Many thanks in advance.



  • @gb Can you post your JS code?