Closed iget-master closed 6 years ago
This constant is defined in the source code and available at runtime on Android.
Just regression tested the Advanced Example project with Google Maps v9.74.1 on Android and using launchnavigator.LAUNCH_MODE.TURN_BY_TURN
causes the Google Maps app to correctly launch in route navigation mode.
Please build and run the Advanced Example to see this working.
I'm exposing the launchNavigator to console and doing the following test:
> launchNavigator.APP.LAUNCH_MODE.TURN_BY_TURN
VM8397:1 Uncaught TypeError: Cannot read property 'TURN_BY_TURN' of undefined
at <anonymous>:1:33
(anonymous) @ VM8397:1
As noticed, it fails.
launchNavigator.APP.LAUNCH_MODE.TURN_BY_TURN
is an incorrect reference; it should be launchnavigator.LAUNCH_MODE.TURN_BY_TURN
. Please read the documentation.
I'm submitting a ... (check one with "x"):
Bug report
Current behavior:
Following the documentation:
Setting launchModeGoogleMaps to
launchnavigator.LAUNCH_MODE.TURN_BY_TURN
doesn't work. It gives me an error saying thatlaunchnavigator.LAUNCH_MODE.TURN_BY_TURN
isn't recognized.Expected behavior:
It should just work as documented!
Steps to reproduce:
Not necessary
Environment information
Cordova CLI: v7.0.1 Cordova platform ls:
Cordova plugin LS
Dev machine OS: Ubuntu 17.10
Ionic environment info
Console output
ERROR Error: Uncaught (in promise): Error: 'launchnavigator.LAUNCH_MODE.TURN_BY_TURN' is not a recognised launch mode Error: 'launchnavigator.LAUNCH_MODE.TURN_BY_TURN' is not a recognised launch mode at Object.ln.util.validateLaunchMode (common.js:843) at Object.ln.navigate (launchnavigator.js:202) at callCordovaPlugin (plugin.js:110) at plugin.js:120 at util.js:22 at new t (polyfills.js:3) at tryNativePromise (util.js:21) at getPromise (util.js:29) at wrapPromise (plugin.js:119) at LaunchNavigator. (plugin.js:238)
at Object.ln.util.validateLaunchMode (common.js:843)
at Object.ln.navigate (launchnavigator.js:202)
at callCordovaPlugin (plugin.js:110)
at plugin.js:120
at util.js:22
at new t (polyfills.js:3)
at tryNativePromise (util.js:21)
at getPromise (util.js:29)
at wrapPromise (plugin.js:119)
at LaunchNavigator. (plugin.js:238)
at c (polyfills.js:3)
at polyfills.js:3
at rejected (3.js:24)
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.es5.js:3890)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.es5.js:3881)
# Documentation issue This bug may be related with an outdated documentation!