cordova-plugin-ionic-webview: iOS App Crash with new version of Google Maps API

From today with a new release of google maps API the app crashes when i try to interact with map component.

I use a google maps web api version

New release is 3.32. http://maps.google.com/maps/api/js?key=' + this.apiKey + '&callback=mapInit

No error with 3.31 https://maps.googleapis.com/maps/api/js?v=3.31&key=' + this.apiKey + '&callback=mapInit

cli packages: (C:\Users\User\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 3.1.8
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.0.2
Node              : v8.9.1
npm               : 5.5.1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20

Most upvoted comments

@AonanLi, I have managed to find the conflict in my code. I was using a js library called PDF.js. It was being loaded locally from the client instead of from an external source. For some reason loading the same library from an external server has resolved my issue. I have tried to find some code which could suggest the reason but with no luck.

Looking through your dependencies, I can’t see anything which looks similar but I’m guessing one of those js libraries is using a similar technique. All I could suggest is trial and error - just removing dependencies until you find the conflict (that’s what I ended up doing). Sorry I couldn’t be of more help.