-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
White Screen when calling Google Maps Plugin after upgrading from Cordova-Android@9.1.0 to Cordova-Android@10.1.0 #365
Comments
I have the same problem??? |
Same problem here. @wf9a5m75: Is this plugin already tested with Cordova Android 10.1.0? |
OK, found the problem. Instead of embarrassing myself explaining it, you can read up on the cause of it here: mapsplugin/cordova-plugin-googlemaps#2871 To solve the issue, use the google maps PR version, created by @ebhsgit
Huge thanks goes to @ebhsgit for solving this problem and creating a PR to fix it. Hopefully his branch will be merged into the main branch at some point. I'm updating my example branch, to help people using ionic find a working copy of the google-maps plugin on cordova-android@10.1.0 |
This solution did not help: "cordova-plugin-googlemaps": "github:mapsplugin/cordova-plugin-googlemaps#918eb5a1bfce9595e922b3ad2442ff81cb9a0fa0" I still have a white screen... |
@lrobak0 could you try setting up the example project I linked and see if that works for you? If it does then I would recommend comparing the differences between your project and my example one. |
I used this fix: "cordova-plugin-googlemaps": "github:mapsplugin/cordova-plugin-googlemaps#918eb5a1bfce9595e922b3ad2442ff81cb9a0fa0", and I got the map loaded, but I'm also using markers and they did not show. |
@IreneAviles Hey, had the same error. I was checking out the person who fixed the white-map issue (@ebhsgit), saw they've made more fixes for random issues and tried out their last commit (that contained previous fixes). Both white-map issue and 'loadPlugin' issue were gone. |
Same problem here |
same problem, did someone fix it? |
@msg10 @Ederson01 @jhonnathanH Using this: |
Amazing @jokerengine this works! |
Its not work to me @vinithjsamuel |
This is because androidx libraries, should work if you install the plugin for that by: Reference: |
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information:
package.json - file also in attached github project
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 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
The text was updated successfully, but these errors were encountered: