Setting GPS coordinates does not work

Teemu Terho's Avatar

Teemu Terho

04 Oct, 2012 12:30 PM

I am working on testing a web application with a licensed version of Electric Mobile Studio 2012. The application uses geolocation from device, but I am unable to set the coordinates so that the instances could read them. Any and all instances I start get the same default coordinates 0, 0 through the API. I've set the coordinates under "GPS"-tab in Studio's main window, the map is being shown and I'm able to select a point, and the text in the upper portion says "Javascript location APIs will return these coordinates: 1.28372142415, 5,53121435 " or whatever. But when going to "Home"-tab and starting an instance, the location is returned as 0, 0. On the "GPS"-tab it is indeed 0, 0. So it doesn't store the coordinates I've selected. There is no "Save"-button visible in GPS-section. I've tried changing the coordinates when an instance is running, to no avail. I'd really like to get this working since using gelocation is a key feature of the application.

  1. Support Staff 1 Posted by Shaun Sullivan on 04 Oct, 2012 01:14 PM

    Shaun Sullivan's Avatar

    I am not seeing this behavior, and I am not aware of any suggestions that
    might help. What version are you running (listed on "About" screen)? What
    operating system? Are you running the paid version, or the trial?

    Also what does your JavaScript code look like that is doing the location
    checks?

    Thanks.

  2. 2 Posted by Teemu Terho on 04 Oct, 2012 02:03 PM

    Teemu Terho's Avatar

    I am running Electric Mobile Studio 2012 v1.0.4 . As I mentioned I'm using the licensed version. Operating system is Windows 7 Enterprise 64-bit. I am actually not running native Javascript but using Vaadin Touchkit framework to create mobile web applications. I've checked that the application gets the location correctly when running it in Chrome, so this a problem with Studio. I am quite certain because the coordinates are always 0,0 when I go to the "GPS"-tab.

  3. Support Staff 3 Posted by Shaun Sullivan on 04 Oct, 2012 05:13 PM

    Shaun Sullivan's Avatar

    Can you try downloading the latest version to see if that helps? (Simply
    download the free trial - it will automatically detect that you have the
    license for the full version).

  4. 4 Posted by Teemu Terho on 05 Oct, 2012 06:22 AM

    Teemu Terho's Avatar

    I downloaded the newest version (v1.0.8), issue is still present. I tried installing the application to a different partition in case it was some sort of read/write access problem, no luck there either.

    So the problem still persists, I have no idea what else to try. I've tried pretty much everything I can come up with at this point. Under "iPhone"-tab I have ticked Javascript and Geolocation. But the problem seems to be with the application and not so much the instances it launches. Whenever I switch to another tab than "GPS" and come back, the coordinates have been reset to 0,0. Can you confirm that I'm using it correctly?

    1. Double click on map to select a place
    2. The marker is set to the place I clicked and the text in top portion shows that Javascript API will return these coordinates
    3. Go to any other tab
    4. Come back to GPS, coordinates are again 0,0 (not expected behaviour)

    Any suggestions as to how to fix this are still welcome.

  5. 5 Posted by Teemu Terho on 19 Oct, 2012 10:38 AM

    Teemu Terho's Avatar

    Any updates on this? I am still experiencing the issue described above and would like to have it resolved.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Oct, 2021 02:38 PM
06 Oct, 2021 05:12 AM
20 Sep, 2021 04:14 PM
02 Aug, 2021 04:22 AM
29 Jul, 2021 07:22 AM