-
Notifications
You must be signed in to change notification settings - Fork 959
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
Google maps in capacitor #629
Comments
You can use the JS SDK as explained in this blog post If you want native SDKs, there is no Capacitor Google maps plugin yet |
I really hate Josh Morony posts, he always says that using the 'Web SDK' is the best option, but in this specific scenario, native google maps provides a lot of features that are cheaper (less requests to google maps, because of OFFLINE map caching) the ability to work offline, map animations and a lot of features missing in the web sdk. Same story with Augmented Reality, Cordova | Capacitor for AR would be better than any web framework but no, he pushes web technology. |
I've added the plugin request label, so add thumbs up reaction to the issue and we will consider the ones with more positive reactions |
Does @ionic-native googlemaps compatible with capacitor? I tried, it works on browser but when I run in android device it shows error adding cordova plugin for googlemaps |
ionic-native are just wrappers for cordova plugins, in this case, the ionic-native/googlemaps is a wrapper for cordova-plugin-googlemaps, you have to install cordova-plugin-googlemaps to make the wrapper work. |
Is cordova-plugin-googlemaps compat yet with iOS Capacitor @jcesarmobile or anyone know? |
Not for iOS. |
Is it possible to use 'cordova-plugin-googlemaps' without the ionic-native wrapper? Because I just use Capacitor without ionic and I don't want to use the JS SDK as well. |
@dupiesdupreez the solution is not for native sdk. It uses JS SDK which is not free and not available for offline mode. |
@tepafril Yea I know, but Its Ionic, when do you Not have to hack 99% of what you do |
For now, the only way to use Native SDK is to downgrade to ionic cordova. |
Wouldn't it even greater to have a capacitor maps plugins that
So the base OS native maps features are used with a single API. ATM the only option I see is using some sort of JS SDK (I'm using HERE Maps atm) but native would be superb! So I would rename the issue and it should be opened again! |
@muuvmuuv People use Apple Maps? |
@dupiesdupreez By pointing us to the JS implementation you are ignoring the core of this thread (@kevinrodriguez-io post is where I am leaning), which is specifically to use the features that the native SDK provides. If it was a true alternative this threat could have been closed. This is an essential Plugin and since it's either all-Capacitor or all-Cordova, the choice will be cordova for a looooot of apps. Consider the pricing alone, while using the native SDK is free, using the JS SDK will cost 7$/1000 clicks. Too sad, I would have loved to use capacitor here but that is a deal-breaker. |
+1 on lack of native SDK Google maps being a deal breaker for using Capacitor. Please find some resources to put into that so we can all use the latest & greatest. |
google-maps seems to be widely used plugin and capacitor lacks it. now we can't downgrade to cordova, because it still has UIWebview references and Apple does not allow UIWebview references since May, 1st 2020. any help from the team would be appreciated. mean while we will use JS SDK, but it will cost us around 7$/1000 clicks. |
Hmm was going to try use Capacitor for a new project I'm working on but I guess without native maps support I'm stuck with Cordova... which isn't a terrible thing as I'm familiar with it anyway. @chetanmore0510 Cordova is still viable even with the UIWebView API deprecation, just follow the steps outlined in this Ionic Blog post to use WKWebView with cordova instead, I've not had any issues with any of the plugins I use since doing this. |
@SimonBrazell thanks for the reply. can you help me to identify that which cordova plugin is still using UIWebview, so that i can remove it and try some other solution. i have below plugins installed in my project.
|
My project has the following plugins included:
So I'd look at those that aren't included for the culprit, might be a slow process but at least you can rule these ones out, oh and I've used The first one I'd look at is |
Hi everyone, some things to consider: (I'm biased but) Capacitor's overall dev experience is much better than Cordova and it's mostly backward compatible with Cordova. So Google Maps issues aside, you really should give Capacitor a try. We have tons of details in the docs about migration and getting started. Google Maps JS SDK costs money, iOS/Android SDKs don't. But Matt, I really need this. Some options:
Cheers! |
mapsplugin/cordova-plugin-googlemaps#2781 Here we go. Fundraising for capacitor support of the existing cordova google maps plugin. |
👋 We now have a repo for Capacitor Community proposals. This request has been moved to capacitor-community/proposals#20. Please 👍 the issue if you'd like to see this plugin for Capacitor! Thanks! |
How I integrate Google maps in capacitor framework
The text was updated successfully, but these errors were encountered: