ionic-team / ionic-team/ionic-native-google-maps

White Screen when calling Google Maps Plugin after upgrading from Cordova-Android@9.1.0 to Cordova-Android@10.1.0

Aperta
#365 13 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
215
Fork
119
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**I'm submitting a ...** (check one with "x")
- [x] any problem or bug report

**If you choose 'problem or bug report', please select OS:** (check one with "x")
- [x] **Android**

**cordova information:**
```
cordova-androidx-build 1.0.4 "cordova-androidx-build"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-device 2.0.2 "Device"
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 4.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.5 "Whitelist"
```

**package.json - file also in attached github project**
```
"@ionic-native/core": "^5.35.0",
"@ionic-native/google-maps": "^5.5.0",
"@ionic/angular": "^5.5.2",
```

**Current behavior:**
Cordova has recently released cordova-android@10.1.0, which supports android 11 and targets API level 30. This is important, because by August 2021, all new Android apps must target at least Android 11 (API level 30). By November 2021, all apps that are being updated must target at least Android 11 (API level 30).
I wanted to upgrade the cordova-android version in my ionic app from v9.1.0 to v10.1.0 and most of it went smoothly. Unfortunately, the google maps plugin is not working. When I run it on my device I currently get a white screen. I'm using the multiple_maps branch to ensure that the AndroidX support libraries are used.

My app is huge, so I've created a new small ionic project, where I only am adding the cordova-plugin-googlemaps plugin. When I install it on my phone and use cordova-android@9.1.0 it works like a charm. When I then upgrade the cordova-android version to v10.1.0 and install it on my phone, I get a white screen in google maps.

To test the same behaviour, here's the [link](https://github.com/jokerengine/ionicapp-cordovaandroid10-googlemaps) to my GitHub project.

**Expected behavior:**
I suspect that a fix needs to be made with the plugin, so that it is compatible with cordova-android@10.1.0

Any help would really be appreciated. Thanks so much!

**Screenshot from my Github App**
![Screenshot_20210820-172122](https://user-images.githubusercontent.com/11041607/130256263-51f3c717-4443-4688-aa3d-39756801bd02.png)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the linked reproduction project and compare its behavior on cordova-android@9.1.0 and @10.1.0, using the listed cordova-plugin-googlemaps version and the multiple_maps branch. Check the plugin's Android integration and runtime logs to isolate the white screen; done means the reproduction displays Google Maps on cordova-android@10.1.0 without regressing the older version.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, typescript
Ambito
mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.