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

Abierto
#365 13 comentarios 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
215
Forks
119
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**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)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con el proyecto de reproducción enlazado y compara su comportamiento en cordova-android@9.1.0 y @10.1.0, usando la versión indicada de cordova-plugin-googlemaps y la rama multiple_maps. Revisa la integración Android del plugin y los registros de ejecución para aislar la pantalla en blanco; se considera terminado cuando el proyecto de reproducción muestra Google Maps en cordova-android@10.1.0 sin causar regresiones en la versión anterior.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, typescript
Área
mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.