ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

Ionic 4.0.0-beta.17 & Google Maps plugin 5.0.0-beta.25 map not render on IOS #145

Closed Anthony2539 closed 5 years ago

Anthony2539 commented 5 years ago

I use google maps plugin with my ionic app. The map render good in 4.0.0-beta.11 on IOS, ANDROID and Web but i updated the version of ionic to 4.0.0-beta.17 and since the map doesn’t render (white screen) on IOS ( works on web). In Xcode i have this log:

** Bug on

** cordova plugin list

cordova-android-play-services-gradle-release 1.4.4 "cordova-android-play-services-gradle-release"
cordova-plugin-admobpro 2.31.6 "AdMob Plugin Pro"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-apprate 1.4.0 "AppRate"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-extension 1.5.4 "Cordova Plugin Extension"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-googlemaps 2.4.1 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.0.2 "cordova-plugin-ionic-webview"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

**ionic info

Ionic:

   ionic (Ionic CLI)             : 4.5.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.17
   @angular-devkit/build-angular : 0.10.6
   @angular-devkit/schematics    : 7.0.6
   @angular/cli                  : 7.0.6
   @ionic/angular-toolkit        : not installed

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : browser 5.0.4, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-webview 2.0.2, (and 14 other plugins)

System:

   ios-deploy : 1.9.2
   ios-sim    : 6.1.1
   NodeJS     : v10.10.0 (/usr/local/bin/node)
   npm        : 6.5.0
   OS         : macOS High Sierra
   Xcode      : Xcode 10.1 Build version 10B61

My repo: https://github.com/Anthony2539/waygng-ionic-v4

Anthony2539 commented 5 years ago

Please @wf9a5m75 for Christmas can you show a quick demo with the latest ionic version (4.0.0-rc.0) ?

battika commented 5 years ago

Merry Christmas! :)

https://github.com/mapsplugin/ionic-googlemaps-quickdemo-v4

(not sure if it works with latest rc though)

Anthony2539 commented 5 years ago

@battika merry Christmas too ;)

https://github.com/mapsplugin/ionic-googlemaps-quickdemo-v4 i have already see this quick demo but it use ionic 4.0.0-beta.0

Do you use the google maps plugin with ionic 4.0.0-rc.0 ?

battika commented 5 years ago

Negative @Anthony2539 , since my app is in production and Ionic 4 is still in RC and upgrade is a huge effort for my app, I am still on Ionic 3.

But why don't you try the same demo with the RC? Just bump up the Ionic version info in the package.json file.

wf9a5m75 commented 5 years ago

Please try the multiple_maps branch

Anthony2539 commented 5 years ago

@wf9a5m75 i used "cordova-plugin-googlemaps": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps" but i have already a white screen on IOS with this log on Xcode: CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/8E746E7A-894B-4250-B460-23DE869699DB/Waygng.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'

Anthony2539 commented 5 years ago

I found the solution, i removed <ion-content> </ion-content> and i use multiple_maps.