Comments (11)
Hi @SteMMo33,
According to the log message it seems like you are missing a particular permission in your app/src/main/AndroidManifest.xml
file. Based on the code snippet included in your issue description the missing permissions would be android.permission.BLUETOOTH_ADVERTISE
.
Can you try adding this particular permission to your app/src/main/AndroidManifest.xml
file and let us know if that helped?
from flutter-permission-handler.
Hello,
just added the additional permission but the result is the same:
D/permissions_handler(28499): Bluetooth permission missing in manifest
I/mali_gralloc(28499): register: id=0x2fe00000ae1, importpid=-1
D/CompatibilityChangeReporter(28499): Compat change id reported: 78294732; UID 10233; state: DISABLED
I/flutter (28499): Statues: {Permission.location: PermissionStatus.granted, Permission.bluetooth: PermissionStatus.denied, Permission.bluetoothScan: PermissionStatus.granted, Permission.bluetoothAdvertise: PermissionStatus.granted, Permission.bluetoothConnect: PermissionStatus.granted}
I/flutter (28499): [scan] NoPermissionDlg
Thanks!
from flutter-permission-handler.
Which version of Android API that you used? I got this similar problem on API 28, and 31 but work fine on API 33, and 34 (Don't know why). Try to test your app on different Android API.
from flutter-permission-handler.
In the SDK Manager I set Android 14.0 - API 34 rev.2 - not 34-ext8 or 34-ext10.
Hope this help ..
from flutter-permission-handler.
@Blue-Cheesecake
Now the context is:
- running on phone with Android 13 - API 33
compileSdkVersion 33
targetSdkVersion 33
In the 'Run' window I see:
D/permissions_handler( 3216): Bluetooth permission missing in manifest
I/flutter ( 3216): Statues: {Permission.location: PermissionStatus.granted, Permission.bluetooth: PermissionStatus.denied, Permission.bluetoothScan: PermissionStatus.granted, Permission.bluetoothAdvertise: PermissionStatus.granted, Permission.bluetoothConnect: PermissionStatus.granted}
I/flutter ( 3216): [scan] NoPermissionDlg
I'm wondering why it reports 'Bluetooth permission missing in the manifest' ..
from flutter-permission-handler.
Hi @SteMMo33,
Sorry for the late reply (holiday got in the way). One thing I just thought of, during compile time the Android compiler will merge different AndroidManifest
s (including manifest specified in libraries) into one final manifest. On possibility would be that the bluetooth permission is removed during this merge proces. Luckily Android keeps a log file of the merge process which can be found in the build/app/outputs/logs
folder.
Could you go through this log file to check if the bluetooth permissions are added? Alternatively feel free to share the log here so we can help analyse it (not sure if the file contains sensitive information though).
from flutter-permission-handler.
When I'm checking permission for bluetooth
on android, it seems to be denied.
Trying to request it does not change it.
But I can ignore that and get permission for bluetoothScan
, which works as expected...
from flutter-permission-handler.
Bluetooth permission is a legacy permission for older devices as you have in manifest android:maxSdkVersion="30"
So you are requesting a permission that you are not able to get granted since it is not there any more for your sdk. See here about bluetooth permissions: https://developer.android.com/develop/connectivity/bluetooth/bt-permissions
Is that make sense?
from flutter-permission-handler.
Would be nice if such legacy permissions were recognized as such and considered automatically granted.
from flutter-permission-handler.
Thanks a lot for the link.
I think it is a little complex but I'll study the official documentation.
Thanks again.
from flutter-permission-handler.
Would be nice if such legacy permissions were recognized as such and considered automatically granted.
Problem is that the Bluetooth permission has been replaced with more fine grained permissions starting from Android API 30. In other words on API 29 and below the permission is still valid, while on API 30 you'd have to use BLUETOOTH_SCAN
, BLUETOOTH_CONNECT
and BLUETOOTH_ADVERTISE
instead. The old BLUETOOTH
permission is no longer valid, returning an automatic granted would give a false positive.
from flutter-permission-handler.
Related Issues (20)
- [Question]: Why AppLifeCycleListener method called repeatedly HOT 1
- [Enhancement proposal]: Add wasm support
- [Question]:I'm facing Permission.PermentlyDenied issue even after requesting or manually giving the permission to app i'm not able to access files in external storage in android 13 whereas I don't face thise issue in android 11 or below HOT 1
- [Question]:I'm facing Permission.PermentlyDenied issue even after requesting or manually giving the permission to app i'm not able to access files in external storage in android 13 whereas I don't face thise issue in android 11 or below HOT 1
- [Bug]: CalendarFullAccess status is always denied in iOS 17+ HOT 5
- [Feature request]: manageExternalStorage in iOS HOT 1
- [Bug]: Firefox: TypeError: 'camera' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName HOT 2
- [Bug]: Gets Permission Granted Status for Limited Permission HOT 2
- [Bug]: Turning on and turning off external storage causes app crash. HOT 3
- [Bug]: Permission.camera.request() throwing permission denied even if I have granted. HOT 9
- [Question]: Failed to initialize decoder: c2.unisoc.avc.decoder HOT 1
- [Question]: ITMS-91053: Missing API declaration HOT 1
- [Bug]: Camera status is always denied in iOS 17 HOT 8
- Permission.backgroundRefresh.status not available anymore HOT 1
- /usr/include/c++/11/cmath:45:15: fatal error: math.h: No such file or directory *** 45 | #include_next <math.h> *** | ^~~~~~~~ *** compilation terminated. HOT 2
- [Bug]: Permission handler doesn't work on Android 14 HOT 1
- [Question]: isGranted getter method conflict HOT 2
- [Bug]: iOS GCC_PREPROCESSOR_DEFINITIONS 设置问题 HOT 1
- [Bug]: The existing windows implementation does not work in Windows 7 HOT 1
- [Feature request]: Detect when a user give a permission just for once HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-permission-handler.