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
- 主要言語
- TypeScript
- スター
- 215
- フォーク
- 119
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**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**

コントリビューションガイド
調査の方向性
リンクされている再現プロジェクトから開始し、指定された cordova-plugin-googlemaps のバージョンと multiple_maps ブランチを使用して、cordova-android@9.1.0 と @10.1.0 での動作を比較してください。プラグインの Android 統合と実行時ログを確認して白い画面の原因を切り分けます。cordova-android@10.1.0 で再現プロジェクトに Google Maps が表示され、古いバージョンでリグレッションが発生しなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, typescript
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100