GPS on Android not working

Tried the sample, tried my own implementation.
The GPS does not return any data, tried all type of android permissions (fine location, coarse location, internet).

Tried it on 2.2, 2.3, 3.0

Nexus S, Galaxy Tab, Motorolla Xoom, HTC Desire Z.

Is this broken in the new release? [import]uid: 53864 topic_id: 13347 reply_id: 313347[/import]

After more testing, it works after 7+ minutes only if there is a SIM card.
We did testing using the native API and it works almost directly (without SIM and on the same devices). So the issue is happening only with Corona.

Other apps do work fine (like google maps).

[import]uid: 53864 topic_id: 13347 reply_id: 48982[/import]

Status on this one? Will be a showstopper for me, too. Read that as: reason to port from Corona to… [import]uid: 5822 topic_id: 13347 reply_id: 51496[/import]

We found a workaround.
you see the compass (as I posted 100 times before) on Android points to the Magnetic North but the Android SDK in Java has an implementation to find the degree to the true geometric north, and my comments were somehow ignored or dismissed, so we actually went ahead and implemented a geometric inclination algorithm in pure lua
and solved that.

The only problem remained is that the location using corona on android needs from 1 to 7 minutes for unknown reasons.

We also solved that by simply doing an async call to an http server to determine the user IP and location (log, mag).
this will work as long as the user is connected to the internet if not we fall back to the hardware GPS (7 minutes solution).

Hope this helps. [import]uid: 53864 topic_id: 13347 reply_id: 51503[/import]

Thanks, but it doesn’t help enough (7 minutes is ridiculous if a user is offline). Have you filed a bug already, otherwise I will (but I assume you have a sample test case ready)? [import]uid: 5822 topic_id: 13347 reply_id: 51509[/import]

Hey Maarten.

Out of interest, have you seen this behavior on more than one Android device ? [import]uid: 84637 topic_id: 13347 reply_id: 51535[/import]

No, but I’d like to know if this is a device or Corona bug before I port my iOS version.

That’s why I asked for a bug report/test case?

[import]uid: 5822 topic_id: 13347 reply_id: 51543[/import]

As I mentioned on previous topics we have access to more than one device:

  • Nexus S
  • Motorolla xoom
  • Galaxy Tab
    and they behave the same when using GPS functionality.

on the other hand, the ipad2 and iphone4 work perfectly, the wait is 1-4 seconds.
[import]uid: 53864 topic_id: 13347 reply_id: 51549[/import]

@Above :

Ok, then it looks like it isn’t a device issue.

I will forward this to the development team. [import]uid: 84637 topic_id: 13347 reply_id: 51550[/import]

Anything new about this issue? Could confirm the same with an Inspire 4G (HTC Desire HD). [import]uid: 43316 topic_id: 13347 reply_id: 52696[/import]

I can confirm this behavior on the HTC Thunderbolt as well. [import]uid: 40100 topic_id: 13347 reply_id: 52708[/import]

I can confirm this behavior on the SAMSUNG Galaxy S as well. [import]uid: 90118 topic_id: 13347 reply_id: 60786[/import]

I tried to run an app for a client on an ARMv6 using build 319, and I had a similar issue, no GPS data was returned, so I tested the Maps application and even there no GPS data was returned. So, the strange thing is, how can a working device just stop returning GPS co-ordinates after installing a Corona App. Does it have to have any settings/permissions to get the data? or does it just kind of mess with the GPS data settings? Don’t think that Corona might be able to mess with the device, but still… so many people having the same problem…

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 13347 reply_id: 60814[/import]

Could you resolve this problem plz ? [import]uid: 90118 topic_id: 13347 reply_id: 60819[/import]

OK, so why is it that corona refuses to fix this android issue with GPS. Even the example provided with corona does not work on and android devices. its more than just a 6 minute issue. It wont pull GPS data at all on the device I am testing on. As mentioned before google maps etc work great.

So, when will this issue be resolved? [import]uid: 33192 topic_id: 13347 reply_id: 86727[/import]