-
Notifications
You must be signed in to change notification settings - Fork 664
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
CB-11875 added android.hardware.location.gps uses-feature. #81
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for sending it
@stevengill @asfgit @audreyso Just curious, are you sure we want to add this? According to Google, it will "ensure that Google Play only distributes your app to devices with GPS sensors". I'm very well missing something, but it seems like that would make it impossible to use this plugin in apps that also wish to be made available to non-GPS-containing devices (which would still be able to get Wi-Fi and Cell-ID based location data). I'd love to know what you think! Thanks! Here's the email I got:
|
@mikepsinn pretty sure. Currently, the geolocation plugin already adds the In this scenario, users have to remove the permission + uses feature to work with non-gps containing devices. If we decided to remove Seeing how we mainly target mobile devices which have GPS, it seems like it makes more sense to add than remove. |
@stevengill Good points. Thanks for the explanation! Do you think I should add something to the "Android Quirks" section of the README warning people that their app won't be available to non-GPS devices if they use this plugin unless they remove that line before building? |
@mikepsinn it would be great to add a note in the readme! We will see how this change affects users. If lots of people complain over time, we may end up going the other way with GPS not needed by default and users having to manually add the permission + uses-feature. |
It's all ok, but why you declared it as required feature? In this way Google Play doesn't allow installing app with this plugin to devices without GPS. It can be fixed by adding android:required="false" |
For anyone who wants GPS to NOT be required, you can add this to
And make sure to add When you build the project,
to
|
Man this bites me every time I go to do a release build. Thanks @dansterrett - that works, but only for the first time you build. On the 2nd time round it will try to add a duplicate line into the Have to manually remove the line with |
We've just merged PR #189 - so please try the current git master, the required variable is now configurable to support devices without GPS. |
Thanks @timbru31 - works great! 👍 |
This seems introduces some incompatibility with other plugins.
In this case conflict is with cordova-plugin-googlemaps Rolling back to 4.0.2 the build succeeded. Any suggestion to use version 4.1.0? |
Did some googling and I came across this issue. I also use cordova-plugin-googlemaps With version Rolling back to 4.0.2 and it's working again |
Platforms affected
Android
What does this PR do?
Fixes feature issue (geolocation)
What testing has been done on this change?
Tested that got added to Android manifest; Ran and tested that geolocation worked on Android device.
Checklist