How do I make a call to google map app on android or iOS?

0 favourites
  • 7 posts
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • Hello,

    Does anyone know how to make a proper call to open google map app on android or iOS?

    Thanx!!!!

  • Hello,

    Does anyone know how to make a proper call to open google map app on android or iOS?

    Thanx!!!!

    Android

    https://developers.google.com/maps/docu ... pi/intents

    iOS

    https://developers.google.com/maps/docu ... /urlscheme

  • Been there, seen that...

    shift or Objective-C examples are not much of help...

    best so far i got this:

    browser execute javascript | "window.open('https://www.google.com/maps/search/?api=1&query=pizza', '_self', 'fullscreen=no');"

    but i get map in browser and not an actual app

    iw seen this on stack:

    window.open("geo:0,0?q=pizza" , '_system');

    but its not working... (or atleest i cant make it work)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Browser -> Go to URL "https://www.google.com/maps/search/?api=1&query=pizza"

    This works on my Android phone.

    According to the documentation:

    [quote:zcw34zck]On an Android device:

    If Google Maps app for Android is installed and active, the URL launches Google Maps in the Maps app and performs the requested action.

    If the Google Maps app is not installed or is disabled, the URL launches Google Maps in a browser and performs the requested action.

    On an iOS device:

    If Google Maps app for iOS is installed, the URL launches Google Maps in the Maps app and performs the requested action.

    If the Google Maps app is not installed, the URL launches Google Maps in a browser and performs the requested action.

  • dop2000

    Interesting... to me it opens in browser either on iphone or android.

    hm... how do you test it?

  • Added a button, on click -> Browser go to URL.

    Opened the project in preview mode on mobile.

  • hello... still having problems with this...

    All works fine while testing on PC or on mobile in browser...

    ...but when i create apk in cocoon it wont launch external aplication.

    Does anyone know how to do this properly?

    Solved:

    config.xml whitelist needed these entrys:

    <access origin="*"/>

    <allow-intent href="http://*/*"/>

    <allow-intent href="https://*/*"/>

    <allow-intent href="geo:*"/>

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)