-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Geolocation 4.1.0: Illegal value $GPS_REQUIRED #3579
Comments
same issue. build failed |
+1 |
2 similar comments
+1 |
+1 |
PR has been merged ionic-team/capacitor#3863 |
It is not ideal, but as a temporary "solution", I have added the following script to my npm commands |
update capacitor to 2.4.4 |
Still seeing this issue in capacitor 2.4.6 - are there any other dependencies that need to be updated? @pete-mcwilliams |
Sorry, since I was poking around with the issue, I have switched to using capacitor Geolocation instead of the Cordova module. I was just linking the pull request to this issue for anyone else that came past this thread. something to get you started with capacitor geolocation
|
The plugin cordova-plugin-geolocation added the variable $GPS_REQUIRED in the release 4.1.0.
apache/cordova-plugin-geolocation#189
Its added to the cordova plugin by the --variable parameter. Unfortunately we cant use this with capacitor. Now the android/capacitor-cordova-android-plugins/AndroidManifest.xml contains this line:
<uses-feature android:name="android.hardware.location.gps" android:required="$GPS_REQUIRED"/>
and outputs the error:
Setting this manually to true or false will set it back to '$GPS_REQUIRED' on the next cap sync. Is it possible to use this with capacitor this way?
The text was updated successfully, but these errors were encountered: