Location updates for kindle

Hi, I dont have a kindle but I have a guy on a kindle fire 7" and he isn’t getting any location updates. My app is just waiting around for location and never gets it. He has location-based services enabled for the device. I am wondering if anyone might have an idea on this? Is there any app-specific settings for this device?
thanks [import]uid: 158162 topic_id: 34015 reply_id: 334015[/import]

The 7" Kindle Fire only support fetching current location via wi-fi and not via GPS, because it does not have a GPS. There are 2 Android permissions that you should set in your “build.settings” file to give your app access to location data via GPS and wi-fi. I’m thinking that your app is missing the “android.permission.ACCESS_COARSE_LOCATION” permission. Please see the code below…

[lua]settings =
{
androidPermissions =
{
– Permission to access the GPS.
“android.permission.ACCESS_FINE_LOCATION”,

– Permission to retrieve current location from WiFi or cellular service.
“android.permission.ACCESS_COARSE_LOCATION”,
},
}[/lua]

Also note that the 1st generation Kindle Fire does not provide any location services at all. Have a look at Amazon’s device specifications via the link below for more details…
https://developer.amazon.com/sdk/fire/specifications.html
[import]uid: 32256 topic_id: 34015 reply_id: 135498[/import]

Thanks yes I have all that right. I might need to put some more error checking into the code to try and solve the problem. [import]uid: 158162 topic_id: 34015 reply_id: 135502[/import]

I just tested this on my 7" Kindle Fire HD… and I can’t get any location data out of it either. I’m getting the following error in the Android log…
[lua]Unable to set up location listener. This device is incapable of providing location data.[/lua]

This is odd, because I know Corona can get location data via wi-fi from other tablets that don’t have a GPS. I had a quick look via the debugger and noticed that my Kindle Fire HD returns [lua]false[/lua] when querying it for the following location system features…
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_LOCATION
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_LOCATION_GPS
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_LOCATION_NETWORK

It makes sense for it to return false for the GPS, but not for the other features. Well that’s no good. This means that the Kindle Fire is indicating that it does not support location services, even though it is enabled in its Settings window. I’m guessing that Amazon has implemented their own location services via their own native APIs to avoid paying licensing fees to Google. In any case, we’ll have to look into a work-around on our end to get this working.

Would you mind writing up a bug report for this please? You can do so by clicking the “Report a Bug” link at the top of this web page. This way it gets into our queue and we can notify you when this issue has been addressed. Thanks!
[import]uid: 32256 topic_id: 34015 reply_id: 135503[/import]

Thanks very much for the excellent support Joshua. I created Case 19637. [import]uid: 158162 topic_id: 34015 reply_id: 135507[/import]

Got it. Thanks! [import]uid: 32256 topic_id: 34015 reply_id: 135509[/import]

The 7" Kindle Fire only support fetching current location via wi-fi and not via GPS, because it does not have a GPS. There are 2 Android permissions that you should set in your “build.settings” file to give your app access to location data via GPS and wi-fi. I’m thinking that your app is missing the “android.permission.ACCESS_COARSE_LOCATION” permission. Please see the code below…

[lua]settings =
{
androidPermissions =
{
– Permission to access the GPS.
“android.permission.ACCESS_FINE_LOCATION”,

– Permission to retrieve current location from WiFi or cellular service.
“android.permission.ACCESS_COARSE_LOCATION”,
},
}[/lua]

Also note that the 1st generation Kindle Fire does not provide any location services at all. Have a look at Amazon’s device specifications via the link below for more details…
https://developer.amazon.com/sdk/fire/specifications.html
[import]uid: 32256 topic_id: 34015 reply_id: 135498[/import]

Thanks yes I have all that right. I might need to put some more error checking into the code to try and solve the problem. [import]uid: 158162 topic_id: 34015 reply_id: 135502[/import]

I just tested this on my 7" Kindle Fire HD… and I can’t get any location data out of it either. I’m getting the following error in the Android log…
[lua]Unable to set up location listener. This device is incapable of providing location data.[/lua]

This is odd, because I know Corona can get location data via wi-fi from other tablets that don’t have a GPS. I had a quick look via the debugger and noticed that my Kindle Fire HD returns [lua]false[/lua] when querying it for the following location system features…
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_LOCATION
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_LOCATION_GPS
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_LOCATION_NETWORK

It makes sense for it to return false for the GPS, but not for the other features. Well that’s no good. This means that the Kindle Fire is indicating that it does not support location services, even though it is enabled in its Settings window. I’m guessing that Amazon has implemented their own location services via their own native APIs to avoid paying licensing fees to Google. In any case, we’ll have to look into a work-around on our end to get this working.

Would you mind writing up a bug report for this please? You can do so by clicking the “Report a Bug” link at the top of this web page. This way it gets into our queue and we can notify you when this issue has been addressed. Thanks!
[import]uid: 32256 topic_id: 34015 reply_id: 135503[/import]

Thanks very much for the excellent support Joshua. I created Case 19637. [import]uid: 158162 topic_id: 34015 reply_id: 135507[/import]

Got it. Thanks! [import]uid: 32256 topic_id: 34015 reply_id: 135509[/import]

Hi,

I am wondering how to find out if this is fixed yet?

thanks

Hi,

I am wondering how to find out if this is fixed yet?

thanks