cordova-plugin-googlemaps
cordova-plugin-googlemaps copied to clipboard
DirectionsService not working on Android
I'm submitting a ...
- [ ] question
- [x] any problem or bug report
OS: (check one with "x")
- [x] Android
- [ ] iOS
- [ ] Browser
cordova information: (run $> cordova plugin list
)
call-number 0.0.2 "Cordova Call Number Plugin"
com-darryncampbell-cordova-plugin-intent 2.0.0 "Intent Shim"
com.googlemaps.ios 3.9.0 "Google Maps SDK for iOS"
cordova-androidx-build 1.0.4 "cordova-androidx-build"
cordova-plugin-android-permissions 1.1.0 "Permissions"
cordova-plugin-androidx-adapter 1.1.1 "cordova-plugin-androidx-adapter"
cordova-plugin-androidx 2.0.0 "cordova-plugin-androidx"
cordova-plugin-camera 5.0.0 "Camera"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-firebasex 10.2.0-cli "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-googlemaps 2.8.0-20200709-2008 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-screen-orientation 3.0.2 "Screen Orientation"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-uniquedeviceid 1.3.2 "UniqueDeviceID"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-sqlite-storage 5.1.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova.plugins.diagnostic 5.0.2 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
phonegap-plugin-barcodescanner 8.1.0 "BarcodeScanner"
If you use @ionic-native/google-maps
, please tell the package.json (only @ionic-native/core
and @ionic-native/google-maps
are fine mostly)
@ionic-native/core : "^5.27.0"
@ionic-native/google-maps : "^5.27.0-beta-20200630"
Current behavior:
'origin': this.origin,
'destination': this.destination,
'travelMode': TravelModeId.DRIVING
})
return Promise<DirectionsResult>
Expected behavior:
DirectionsService.route(...)
throw exception
cordova.callbackFromNative('PluginDirectionsService958478195',false,9,["NOT_FOUND"],false);
Related code, data or error log (please format your code or data):
https://github.com/timkovik/postsrvs/tree/stable
Not ready to use in Android and iOS
I know, but it used to work. Is there a demonstration repository https://github.com/mapsplugin/ionic-googlemaps-quickdemo-v5, or should it not be taken seriously?
To sum up: did I understand correctly that there can be no constructive advice in this case?
This plugin uses Google Maps JavaScript v3 on browser platform. That's why it works on the demo page. But Google Maps SDK for Android/iOS do not have the direction feature. Directions API is separated. That's why can not.
oh, thanks! Now im understand