Software Archive
Read-only legacy content
17061 Discussions

android.hardware.location.gps Your APK manifest requires capabilities not present on this device.

Leonidas_S_
New Contributor I
1,207 Views
  • android.hardware.location.gps

this needed by amazon - I submitted an Android App - not amazon app. How add in xdk manifest this???

  • android.hardware.location.gps

 

see shot:attached

 

 

 

 

0 Kudos
5 Replies
Brandon_K_Intel
Employee
1,207 Views

This error seems to be telling you that the gps feature of you application will not work on that specific device. I don't believe this is an error in the way your application was built unless you did not intend to use the gps Cordova plugin.

0 Kudos
Leonidas_S_
New Contributor I
1,207 Views

So if using HTML5 geolocation ... I am ok... for this Android build app submittdd in amazon?

0 Kudos
Pamela_H_Intel
Moderator
1,207 Views

@Leonidas - I agree with Brandon. This is not an error in your application. It is that one or more of your plugin features does not work with your device.

Not all Cordova plugins work with all versions of Android OS. I looked in the Cordova documentation in Geolocation and the only limitation I saw is that Android 2.x has issues with the enableHighAccuracy option, but some phones just do not have the ability to support some plugin features. Do you have another Android device you can test on?

0 Kudos
Leonidas_S_
New Contributor I
1,207 Views

please note the first thread message from amazon - gotten from amazon dashboard submit app - i never tested on device amazon, only in Samsung Note 1 Phone  4.1.2 Android working SUCCESS.

AMAZON PROHIBITS SUBMIT APP TILL FIXED.

well as of Amazon - if this plugin not supported can delete it and use HTML5 GEOLOCATION FEATURES  alone - not use cordova plugin during compilation in XDK...?

 

 

0 Kudos
PaulF_IntelCorp
Employee
1,207 Views

See this thread regarding the Kindle Fire. Apparently that device does not include GPS capabilities. Whether or not using the pure HTML5 geo interface will fix the issue is unclear. You'll have to try it to see. BTW -- the standard Cordova geo plugin uses the identical geo API as the standard HTML5 geo API, and uses the built-in HTML5 geo API if it is supported by the webview.

See this app for an example of using the Cordova plugin for geo: https://github.com/xmnboy/hello-cordova

0 Kudos
Reply