question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implementing browser support

See original GitHub issue

Hey there,

Thanks for the awesome plugin.

I was wondering, how hard would it be to add browser support?

Did you guys try anything yet and had problems? or just not focusing on that for now?

I was thinking we could add a new file /www/browser/googlemaps-cdv-plugin.js and route all method calls to the javascript library (should be loaded by the user manually).

This can help people debug in the browser in real time, as well as use this plugin for any other platform supported by Cordova, or even the web.

If you think this is doable and will solve a problem, then let’s create a new branch for people to contribute to over time.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
wf9a5m75commented, Jul 16, 2016

This plugin focuses on the native sdks, and no plan to support for browser.

1reaction
rparcuscommented, Jul 16, 2016

Hi Ibrahim, I’m not a dev here but maybe I can help with this.

What this plugin offers is a cordova wrapper around the android and iOS native google maps SDKs. https://developers.google.com/maps/documentation/android-api/ for example. It is java and objective-c code and it is not code intended to run o browsers.

If you need a map on the browser, you should use the gmaps javascript API directly, leaflet or other similar things. ( https://developers.google.com/maps/documentation/javascript/ )

My personal view is that it is up to the programmer (and not to this plugin) to take care of this use case. Trust me, the more focused this project is, the better it is for all of us.

When you say you want to " ease the development process for people who are using this plugin", I guess you want to be able to test your app using “ionic serve”. Did you have any problems debugging on emulators or native devices? “ionic run platform -c -l” should get the job done!

Hope this helps!

2016-07-16 17:20 GMT+08:00 Ibrahim Hadeed notifications@github.com:

I understand.

My question is: do you think it’s doable?

I think it’s easier if you answer the question rather than me going through the code to figure it out.

I’m not asking you guys to write any code, I just need to know if it’s possible and if you are willing merge it with your plugin if someone sends you a PR.

The goal of adding it isn’t to fully support browser, but to ease the development process for people who are using this plugin.

On Jul 16, 2016 1:36 AM, “Masashi Katsumata” notifications@github.com wrote:

This plugin focuses on the native sdks, and no plan to support for browser.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1029#issuecomment-233109600 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ANJ8dOypSc9qdSIbsVm_mJrB3TAFACMmks5qWG3egaJpZM4JN6aK

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1029#issuecomment-233121764, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4X7nYncPeB7eSKpMAxCE6ndlwsI5QLks5qWKJggaJpZM4JN6aK .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
How To Build Cross-Browser Compatible Websites - WP Engine
With the variety of options for browsers available today it is important to create a website that is cross-browser compatible.
Read more >
Supporting older browsers - Learn web development | MDN
You now have the knowledge to confidently use techniques such as Grid, create fallbacks for older browsers, and make use of any new ......
Read more >
A Guide To CSS Support In Browsers - Smashing Magazine
CSS Feature Queries allow authors to condition rules based on whether particular property declarations are supported in CSS using the @supports ...
Read more >
Cross Browser Compatibility Tutorial: A Comprehensive Guide ...
Cross browser friendly library: Most websites are developed using third-party libraries and frameworks. Using the wrong or non-friendly alternative could cause ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found