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
Map won't load #2900
Comments
Also having this issue after upgrading to cordova 10. |
Also having this issue. Any sugerency... |
I am also using Cordova 10 targeting 31 but for me it works. I wonder if this has to do with custom markers? |
I am also using Cordova 10 targeting 31 but does not for me it works .i can only see white screen and can u plz share me your sample code and when building did u get any issues regarding |
Will do. Give me a day or two. Currently traveling. Did you test it with an actual device? What Android version is the device? But I did test it with the simulator as well on every Android version and it worked. What does the simulator do for you? |
Thanks for reply . I uninstalled the current one and installed this and also installed androidx and androidx-adapter and replace and imported some classes from androidX and androidX adapter that was not found in pluginMap.java file to fix build issue and then everything worked fine for me Thanks :) |
I also have this issue. |
@keev-studio Do you solve your problem ?? |
I solved the issue by doing below steps
and at the top import section search for PermissionChecker and NonNull and replace that 2 imports with this in both files
Finally remove and add the android platform again and run the projects Note : in recent versions of ionic android platform there is androidX build in but still i suggest u to install using the above command . |
after doing this steps u can access the plugins by declaring For eg :
|
I'm also experiencing this issue (map staying blank) after upgrading pluginManager.addService(pluginEntry); The cause seems to be that assert this.cordova == null; If I build the app for release, the map appears correctly (since assertions are never run in release mode). The strange thing is that the code was identical in |
Thanks Lorenzo for your input. Can you please elaborate more on specific changes you did to make the plugin working on Cordova 11. So many people waiting for this I suppose. |
The Maps plugin creates some helper CordovaPlugin objects and registers them with PluginManager, and, at the same time, calls 'privateInitialize' manually. This causes an assertion to trip inside Cordova Android. The failing assertion only affects debug-mode builds that use a new Android SDK. See also mapsplugin#2900
@keev-studio please see this commit on our fork: webratio/phonegap-plugin-googlemaps@66e8d26. The fix for now is very very hacky. Basically I null out the Ideally, we should fix the problem by not requiring an explicit initialization of the various plugin objects (i.e. calls to |
Hi, I am sorry it took me so long to implement your solution. Unfortunatelly the map stay blank (do not initialize loading) after using your fork. |
no, still looking for solution, did you find any? |
@keev-studio I guess the plugin is showing some other issue that I didn't encounter. Your best bet is to look at native Android logs. You can try opening your app in Android Studio and building from there, or may using the command |
Hi, thank you for pushing me forward. |
Hello i've been solving this for hours already and i finally resolve the issue.
i've tried this and
this also mine is now working |
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior:
The map doesn't load. I traced the JS code, and it seems to call through to the Java code, but a breakpoint in the Java code shows the CordovaGoogleMaps execute function is not being called. I'm not positive this is relevant, but I do get an info-level log line:
Expected behavior:
Map should load
Related code, data or error log (please format your code or data):
I upgraded to cordova-android 10 and I'm targeting the Android SDK 31; those are the changes I made right before this stopped working.
Support this plugin activity
I appreicate if you give me a beer 🍺 from here
The text was updated successfully, but these errors were encountered: