Replies: 1 comment 2 replies
-
I see a lot of people struggling with the permissions but we know it's not a library issue since users find it hard to deal with using an For example:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am working on a BLE-based application and found it much easier to bypass the initial configuration requirements using the example provided in your repository. Thank you for making this process more convenient!
However, I encountered a couple of issues that I’d like to highlight:
Issue #1:
When trying to upload the code (not directly your example code but a customized version based on it), I encountered the following errors in Google Play (screenshot attached):
`
Duplicate declarations of element 'android.permission.ACCESS_COARSE_LOCATION' in manifest with different maxSdkVersions.
Duplicate declarations of element 'android.permission.ACCESS_FINE_LOCATION' in manifest with different maxSdkVersions.
`
To temporarily resolve this, I commented out the addLocationPermissionToManifest function in the withBLEAndroidManifest.js file. While this allowed the app to work, it limits the range of targeted devices, which is not ideal for the final solution.
Issue #2:
New app uploads to Google Play require targeting the latest SDK/API. To meet these requirements, I had to execute the following commands and make changes to the app.json file:
npx expo install expo-build-properties
"plugins": [ [ "expo-build-properties", { "android": { "compileSdkVersion": 34, "targetSdkVersion": 34, "buildToolsVersion": "34.0.0" }, "ios": { "deploymentTarget": "13.4" } } ] ],
These changes ensured compliance with Google Play's policies but required additional setup steps.
I’d greatly appreciate your efforts in addressing the issues mentioned above.
e.
Beta Was this translation helpful? Give feedback.
All reactions