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

App crashes on Android 12 or after! #200

Open
savitore opened this issue Jul 15, 2023 · 5 comments
Open

App crashes on Android 12 or after! #200

savitore opened this issue Jul 15, 2023 · 5 comments

Comments

@savitore
Copy link

savitore commented Jul 15, 2023

Problem summary

When we add the Bluetooth connectivity to the app and visit the screen that contains the connection, the app crashes if the android mobile has Android 12 or after. The connection works fine for Android 11 or before.
There might be some permissions problem, but I've tried adding every Bluetooth permission, and it still doesn't work.

@Fouad-Asil
Copy link

try to add ACCESS_FINE_LOCATION

@savitore
Copy link
Author

added that, didn't work:)

@dotupNET
Copy link

Try this

<uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" /> <uses-permission-sdk-23 android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="30" /> <uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30" />

@GabLast
Copy link

GabLast commented Sep 8, 2023

Having the same Issue here.

When the permissions page pop up and they are granted, the app crashes. However, when the permissions are denied, everything's fine.

Tested with the current manifest:

<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<!-- Needed only if your app looks for Bluetooth devices.
         If your app doesn't use Bluetooth scan results to derive physical
         location information, you can strongly assert that your app
         doesn't derive physical location. -->
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>
<!-- Needed only if your app makes the device discoverable to Bluetooth
  devices. -->
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE"/>
<!-- Needed only if your app communicates with already-paired Bluetooth
       devices. -->
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
<!--bibo01 : hardware option-->
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

@xtensa
Copy link

xtensa commented Oct 9, 2023

Bump. Any update on this issue? This is quite critical issue, as it is drawing plugin unusable on Android 12+.

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

No branches or pull requests

5 participants