Reputation: 653
I made an app that uses Google Maps Javascript SDK. It works perfectly when using "ionic serve
" to browser, emulator and connected device (Android 6 and iOS 10). Works well when using "ionic run android
" too. But when I send to Ionic View the maps feature does not appear.
I've already put my API key and tried using enableProdMode(), but nothing makes the maps feature be showed.
Any suggestion ?
My software versions :
OSX Sierra
ionic 2.2.3
cordova 7.0.1
node 6.9.1
npm 4.2.0
Also I would like to know if there is any way to debug the app in Ionic View.
Upvotes: 0
Views: 223
Reputation: 154
It would be great if you can show us some code. Its hard to find the issue without.
In my case i forgot to add the geolocation
plugin. Add with cordova plugin add cordova-plugin-geolocation
.
This could help you too:
https://forum.ionicframework.com/t/ionic-google-maps-referenceerror-google-is-not-defined/22550/6
Upvotes: 1