Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install App on Android devices without GPS hardware #187

Closed
2 of 3 tasks
sithwarrior opened this issue Jan 6, 2020 · 0 comments · Fixed by #189
Closed
2 of 3 tasks

Cant install App on Android devices without GPS hardware #187

sithwarrior opened this issue Jan 6, 2020 · 0 comments · Fixed by #189

Comments

@sithwarrior
Copy link
Contributor

Bug Report

Cant install App on Android devices without GPS hardware, as it is required in the manifest, because of this plugin

Problem

Cant install App on devices without GPS hardware

What is expected to happen?

Should be able to install the app on all Devices

What does actually happen?

Cant install App on devices without GPS hardware

Information

Cant install App on devices without GPS hardware, as it is required in the manifest, because of this plugin

Command or Code

The uses-feature, is not set as optional, so apps with this plugin, can not be installed on Android.
Plugin.xml

<config-file target="AndroidManifest.xml" parent="/*"> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-feature android:name="android.hardware.location.gps" /> </config-file>

It could be fixed by setting android.hardware.location.gps to optional with this command
<uses-feature android:name="android.hardware.location.gps" android:required="false" />

Environment, Platform, Device

Android
Lenovo E7 With Android Go

Version information

Latest

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant