Closed b-ozcan closed 5 years ago
$> ionic cordova plugin rm cordova-plugin-googlemaps
$> ionic cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps
I should re-add the plugin with the ios/android variables I assume? (returns error when not)
$> ionic cordova platform rm ios
$> ionic cordova plugin rm cordova-plugin-googlemaps
$> ionic cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps --variable API_KEY_FOR_ANDROID="myApiKey" --variable API_KEY_FOR_IOS="myApiKey"
$> ionic cordova run ios
result:
Type cordova
in console.log
Object = $1
InAppBrowser: {open: function}
addConstructor: function(func)
addDocumentEventHandler: function(event)
addStickyDocumentEventHandler: function(event)
addWindowEventHandler: function(event)
callbackError: function(callbackId, args)
callbackFromNative: function(callbackId, isSuccess, status, args, keepCallback)
callbackId: 60935195
callbackStatus: {NO_RESULT: 0, OK: 1, CLASS_NOT_FOUND_EXCEPTION: 2, ILLEGAL_ACCESS_EXCEPTION: 3, INSTANTIATION_EXCEPTION: 4, …}
callbackSuccess: function(callbackId, args)
callbacks: {NetworkStatus60935192: Object, StatusBar60935193: Object}
define: function(id, factory)
exec: function()
file: {applicationDirectory: "file:///var/containers/Bundle/Application/XXX-MYAPP/myApp.app/", applicationStorageDirectory: "file:///var/mobile/Containers/Data/Application/XXX-MYAPP/", dataDirectory: "file:///var/mobile/Containers/Data/Application/XXX-MYAPP/Library/NoCloud/", cacheDirectory: "file:///var/mobile/Containers/Data/Application/XXX-MYAPP/Library/Caches/", externalApplicationStorageDirectory: null, …}
fireDocumentEvent: function(type, data, bNoDetach)
fireWindowEvent: function(type, data)
getOriginalHandlers: function()
platformId: "ios"
platformVersion: "4.5.5"
plugins: {fileOpener2: FileOpener2, IsDebug: Object, diagnostic: Object}
removeDocumentEventHandler: function(event)
removeWindowEventHandler: function(event)
require: function(id)
version: "4.5.5"
Object Prototype
Please share your project files on GitHub.
If you get the error with ionic cordova run browser -l
, try upgrade with npm -g install ionic@4.3.0
https://forum.ionicframework.com/t/cordova-js-not-loaded-in-livereload/146115
ping
ping
(Sorry I was out for the weekend)
If you get the error with
ionic cordova run browser -l
, try upgrade withnpm -g install ionic@4.3.0
https://forum.ionicframework.com/t/cordova-js-not-loaded-in-livereload/146115
I didn't get any errors when using ionic cordova run browser -l
. What I did see was the 'For development purposes only' in the map. But that's because of my api key is for ios only (probably).
Updated Ionic to 4.3.1 -> Problem still standing
I said "Please share your project files on GitHub"
I decided to start all over and create a blank project.
So.. As you'd suggested I've updated my Ionic to the latest. Installed the cordova plugin as you've said above with the #multiple_maps
and now it's working. I haven't done anything else/different, so I think it was something with the Ionic version I was using (not sure)?? Sorry for wasting your time but thank you again for having a look at it.
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
ionic information: (run
$> ionic info
)snippet from config.xml
snippet from package.json
Current behavior: The Google Maps isn't working/loading
Expected behavior: To make Google Maps working/loading Performing the EXACT same steps on a windows machine does work for Android.
Steps to reproduce:
ionic start testApp blank (v3 and yes for cordova)
executed npm and plugin commands like on this page: https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/README.md
updated the content of home.ts exactly from example on same page. (changed Env keys)
I have installed xCode 10.x so I'm using a buildflag to prevent building errors. I've added a build.json to my ionic project root
ionic cordova build ios
I have cocoapods installed and google maps is getting installed from there to. So i have GoogleMaps in
/platforms/ios/Pods and cordova-plugin-googlemaps
in/platforms/ios/testApp/Plugins
App has been signed in xCode (always working before)
The app runs but the maps section is empty, when I inspect with the editor I get the following error: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/plugins/cordova-plugin-googlemaps/www/promise-7.0.4.min.js.map