3 Replies Latest reply on Oct 27, 2017 6:22 AM by piero.alberto

    Open google maps within Phonegap 7

    piero.alberto Level 1

      Hi all,

       

      with the previous Phonegap version, I used to open google maps from the app simply opening with an href an url, like this Google Maps

       

      But I noticed, with Phonegap 7, that when I tap on the href element, nothing happens. Why?

       

      How can I fix this and open google maps with a given itinerary?

        • 1. Re: Open google maps within Phonegap 7
          kerrishotts Adobe Employee

          It might help to see your config.xml file (be sure to scrub it of any sensitive/private info).

          • 2. Re: Open google maps within Phonegap 7
            piero.alberto Level 1

            Here my config

             

            <widget id="com.devexpress.apptemplate" version="1.0" versionCode="1">

              <name>ApplicationTemplate</name>

              <description>Template</description>

              <preference name="phonegap-version" value="cli-7.0.1" />

              <preference name="permissions" value="none" />

              <preference name="prerendered-icon" value="true" />

              <preference name="android-windowSoftInputMode" value="adjustPan" />

              <preference name="SplashScreenDelay" value="60000" />

              <preference name="AutoHideSplashScreen" value="false" />

              <preference name="SplashShowOnlyFirstTime" value="false" />

              <preference name="FadeSplashScreen" value="false" />

              <preference name="ShowSplashScreenSpinner" value="false" />

              <preference name="DisallowOverscroll" value="true" />

              <preference name="StatusBarOverlaysWebView" value="false" />

              <preference name="StatusBarBackgroundColor" value="#000000" />

              <preference name="android-minSdkVersion" value="15" />

              <preference name="android-targetSdkVersion" value="22" />

              <plugin name="cordova-plugin-geolocation" />

              <plugin name="cordova-plugin-splashscreen" onload="true" />

              <plugin name="cordova-plugin-whitelist" />

              <plugin name="cordova-plugin-ios-longpress-fix" />

              <plugin name="cordova-plugin-statusbar" onload="true" />

              <plugin name="phonegap-plugin-push" spec="2.0.0" />

              <platform name="android">

                <resource-file src="google-services.json" target="google-services.json" />

              </platform>

              <platform name="ios">

                <resource-file src="GoogleService-Info.plist" />

              </platform>

              <access origin="*" />

            </widget>

            • 3. Re: Open google maps within Phonegap 7
              piero.alberto Level 1

              Using the plugin "InAppBrowser" is the solution