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.

GPS geolocation support

See original GitHub issue

I need accurate GPS location for an app. So geolocation by IP won’t do. I see that you may use cordova plugins such as cordova-plugin-geolocation.

But looking at the documentation for doing this myself is a bit vague. It talks about building locally and requiring Xcode which I would be unable to do on my Linux system. It also talks about a config.xml for including plugins. Could this possibly be all I need to do to include the cordova plugin? Do I need to build it myself, or map methods? I’m under the impression that builds can be done with the press of a button.

I’ve got a working node.js server running with the tabris.js app working on both Android and iPhone for some simple user interaction. How difficult would including native GPS data be? Alternatively I could perhaps use the in-app-browser to use W3C standards of trying to access GPS data.

This is my first few days with tabris.js so some direction would be greatly appreciated.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
cookiegurucommented, Aug 30, 2016

To include a plugin, as dested mentioned you just add the appropriate line to your config.xml. Once you’ve done that, you can head over to the “My Apps” section of https://tabrisjs.com/ and kick off a build for Android or iOS.

2reactions
destedcommented, Aug 30, 2016

Yes just a simple if statement. Yes just the config XML changes.

On Tue, Aug 30, 2016, 2:20 PM Daniel P. Clark notifications@github.com wrote:

When you say “branch my code a bit”. How is that? Is it simple like an if statement in the code to check for the Android OS, or is it more or less maintaining two separate code bases?

And I’m assuming by your narrow response that I’m on the right path and the config.xml is where I include the dependencies. I’m going to see if they’ll work in the test apps for both OSes. Unless you’re kind enough to stop me from doing something that won’t work.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/eclipsesource/tabris-js/issues/960#issuecomment-243584934, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyOALRw5jxR_wC1o1n4eHAaYTXDfhr5ks5qlJ6jgaJpZM4Jw62T .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Geolocation API - MDN Web Docs
The Geolocation API allows the user to provide their location to web applications if they so desire. For privacy reasons, the user is...
Read more >
Geolocation | 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 >
Overview | Geolocation API | Google Developers
The Geolocation API returns a location and accuracy radius based on information about ... The following fields are supported, and all fields are...
Read more >
Manage your Android device's location settings
Use Google Location Services to help estimate your phone's location faster and more accurately. Device only: Use GPS and sensors. Don't use Google...
Read more >
HTML Geolocation API - W3Schools
Note: Geolocation is most accurate for devices with GPS, like smartphones. Browser Support. The numbers in the table specify the first browser version...
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