Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Camera Plugin, Kindle Fire and Android Permissions incompatibility #1445

Open
viking2917 opened this issue Oct 5, 2017 · 3 comments
Open

Comments

@viking2917
Copy link

I'm using the Camera plugin and porting a working Android project to Kindle Fire (FireOS). When submitting to the Amazon store, their compatibility tester fails for most recent devices because it states that my manifest file requires the android.hardware.camera.autofocus permission, but that recent devices don't support that permission. So far as I can tell, the plugin does not specifically request this permission, however according to Android docs, the autofocus permission is "implied" by default when the camera permission is requested. (https://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions)

I am working around this at present by manually adding
(https://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions)
to my AndroidManifest.xml file, but I'm wondering if the plugin itself should explicitly declare this permission not required, so that most recent Kindle Fire devices can be supported out of the box?

@arcadius
Copy link

Just facing this same issue now

@viking2917
Copy link
Author

@arcadius I think what I did specifically to resolve this was put the following line in my config.xml (it is an Ionic project):


 <config-file mode="merge" parent="/*" target="AndroidManifest.xml">
        <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
    </config-file>

@arcadius
Copy link

Thanks @viking2917

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants