3 Replies Latest reply on Sep 13, 2016 8:52 PM by kerrishotts

    Launch Navigator Plugin -  IOS

    ccharroux

      I am using phone gap build and am trying to use the Launch Navigator plugin...

       

      It works fine for my Android app

       

      iOS - nothing. My iOS version is 9.3.5 - iPhone 6 Plus.

       

      My code is as simple as it gets...

       

      Is anyone having success in iOS?

       

      js code

       

      function StartNavigation(toAddress)

         try
          {
              launchnavigator.navigate(toAddress, "", StartNavigationSuccess, StartNavigationFailure);
          }
          catch (ex)
          {

       

              alert(err);
          }
      }

      function StartNavigationSuccess()

      {

        alert('success');

      return;

      }

      function StartNavigationFailure(error)

      {

      alert(error);
      return;

      }

       

      This code displays success for iOS but never launches the apple maps app- but for android I got the choice to pick an app and it works fine.

        • 1. Re: Launch Navigator Plugin -  IOS
          kerrishotts Adobe Community Professional

          It would help to see your config.xml (minus identifying/secret information). You might also try contacting the plugin's developers.

          • 2. Re: Launch Navigator Plugin -  IOS
            carlspapp

            <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.tatbeq.joiful" version="1.0.110">

              <name>xxxxxx</name>

              <description>Description</description>

              <author href="http://xxxxxxx.com" email="xxxxxx@xxxxx.com">Team</author>

              <content src="index.html"/>

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

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

              <preference name="orientation" value="portrait" />

              <plugin name="cordova-plugin-device" source="npm" spec="~1.1.1"/>

              <plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0"/>

              <plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2"/>

              <plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0"/>

              <plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0"/>

              <plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0"/>

              <plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1"/>

              <plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2"/>

              <plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2"/>

              <plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1"/>

              <plugin name="pushwoosh-pgb-plugin" source="npm" />

              <plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" spec="2.1.0" source="pgb"/>

              <icon src="icon.png"/>

              <platform name="android">

                <icon src="assets/common/phonegap/icons/android/icon-36-ldpi.png" density="ldpi"/>

                <icon src="assets/common/phonegap/icons/android/icon-48-mdpi.png" density="mdpi"/>

                <icon src="assets/common/phonegap/icons/android/icon-72-hdpi.png" density="hdpi"/>

                <icon src="assets/common/phonegap/icons/android/icon-96-xhdpi.png" density="xhdpi"/>

                <icon src="assets/common/phonegap/icons/android/icon-144-xxhdpi.png" density="xxhdpi"/>

                <icon src="assets/common/phonegap/icons/android/icon-192-xxxhdpi.png" density="xxxhdpi"/>

                <splash src="assets/common/phonegap/screens/android/screen-ldpi-portrait.png" density="port-ldpi"/>

                <splash src="assets/common/phonegap/screens/android/screen-mdpi-portrait.pngg" density="port-mdpi"/>

                <splash src="assets/common/phonegap/screens/android/screen-hdpi-portrait.png" density="port-hdpi"/>

                <splash src="assets/common/phonegap/screens/android/screen-xhdpi-portrait.png" density="port-xhdpi"/>

              </platform>

              <platform name="ios">

                <icon src="assets/common/phonegap/icons/ios/icon.png" platform="ios" width="57" height="57"/>

                <icon src="assets/common/phonegap/icons/ios/icon-2x.png" platform="ios" width="114" height="114"/>

                <icon src="assets/common/phonegap/icons/ios/icon-40.png" platform="ios" width="40" height="40"/>

                <icon src="assets/common/phonegap/icons/ios/icon-40-2x.png" platform="ios" width="80" height="80"/>

                <icon src="assets/common/phonegap/icons/ios/icon-50.png" platform="ios" width="50" height="50"/>

                <icon src="assets/common/phonegap/icons/ios/icon-50-2x.png" platform="ios" width="100" height="100"/>

                <icon src="assets/common/phonegap/icons/ios/icon-60.png" platform="ios" width="60" height="60"/>

                <icon src="assets/common/phonegap/icons/ios/icon-60-2x.png" platform="ios" width="120" height="120"/>

                <icon src="assets/common/phonegap/icons/ios/icon-60-3x.png" platform="ios" width="180" height="180"/>

                <icon src="assets/common/phonegap/icons/ios/icon-72.png" platform="ios" width="72" height="72"/>

                <icon src="assets/common/phonegap/icons/ios/icon-72-2x.png" platform="ios" width="144" height="144"/>

                <icon src="assets/common/phonegap/icons/ios/icon-76.png" platform="ios" width="76" height="76"/>

                <icon src="assets/common/phonegap/icons/ios/icon-76-2x.png" platform="ios" width="152" height="152"/>

                <icon src="assets/common/phonegap/icons/ios/icon-small.png" platform="ios" width="29" height="29"/>

                <icon src="assets/common/phonegap/icons/ios/icon-small-2x.png" platform="ios" width="58" height="58"/>

                <splash src="assets/common/phonegap/screens/ios/screen-iphone-portrait-568h-2x.png" platform="ios" width="640" height="1136"/>

                <splash src="assets/common/phonegap/screens/ios/screen-iphone-portrait-667h.png" platform="ios" width="750" height="1334"/>

                <splash src="assets/common/phonegap/screens/ios/screen-iphone-portrait-736h.png" platform="ios" width="1242" height="2208"/>

                <splash src="assets/common/phonegap/screens/ios/screen-ipad-portrait-2x.png" platform="ios" width="1536" height="2048"/>

                <splash src="assets/common/phonegap/screens/ios/screen-ipad-portrait.png" platform="ios" width="768" height="1024"/>

                <splash src="assets/common/phonegap/screens/ios/screen-iphone-portrait-2x.png" platform="ios" width="640" height="960"/>

                <splash src="assets/common/phonegap/screens/ios/screen-iphone-portrait.png" platform="ios" width="320" height="480"/>

              </platform>

              <platform name="wp8">

                <icon src="assets/common/phonegap/icons/wp8/ApplicationIcon.png" platform="wp8" width="99" height="99"/>

                <icon src="assets/common/phonegap/icons/wp8/Background.png" platform="wp8" width="159" height="159"/>

                <splash src="assets/common/phonegap/screens/wp8/SplashScreenImage.jpg" platform="wp8" width="768" height="1280"/>

              </platform>

              <platform name="windows">

                <icon src="assets/common/phonegap/icons/windows/logo.png" platform="windows" width="150" height="150"/>

                <icon src="assets/common/phonegap/icons/windows/smalllogo.png" platform="windows" width="30" height="30"/>

                <icon src="assets/common/phonegap/icons/windows/storelogo.png" platform="windows" width="50" height="50"/>

                <splash src="assets/common/phonegap/screens/windows/splashscreen.png" platform="windows" width="620" height="300"/>

              </platform>

              <preference name="android-build-tool" value="gradle" />

              <access origin="*"/>

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

              <access origin="*.pushwoosh.com"/> <!-- allow pushwoosh service -->

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

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

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

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

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

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

              <platform name="android">

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

              </platform>

              <platform name="ios">

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

                <allow-intent href="itms-apps:*"/>

              </platform>

              <gap:config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">

                <false/>

              </gap:config-file>

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

            </widget>

            • 3. Re: Launch Navigator Plugin -  IOS
              kerrishotts Adobe Community Professional

              You're sourcing the plugin from the PGB repo which is deprecated. Use source="npm" instead (https://www.npmjs.com/package/uk.co.workingedge.phonegap.plugin.launchnavigator).

               

              You've also included the status bar plugin twice. I don't think that will hurt anything, but there's no need for the repetition.