You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For location, I can check if its enabled or disabled. However, I couldn't see a serviceStatus property for bluetooth. Is there any way to check if bluetooth is enabled or disabled?
Would be nice to get this merged. In the meantime, I import permission_handler_platform_interface: ^3.11.1 and use PermissionHandlerPlatform.instance.checkServiceStatus(Permission.bluetooth).
We are aiming to get this in soon.
See #1099, #1100, #1101, #1102 for progress on the feature.
Please note that the changes there exceed the changes in #942, as we found that the iOS implementation does not correctly return the service status. You may therefore find that you get ServiceStatus.disabled, regardless of the Bluetooth state, when using #942 in combination with permission_handler_platform_interface: ^3.11.1 as you described.
The feature is now available on the latest version of the plugin. To pull it in, just run flutter pub upgrade in your project that has a dependency on either permission_handler or permission_handler_apple. Check the pubspec.lock file to make sure the dependency to permission_handler_apple is 9.1.4. As permission_handler_apple is endorsed by permission_handler, you do not need to explicitly list it in your pubspec.yaml file.
Activity
ChopinDavid commentedon Nov 2, 2022
I made a fork that resolves this and am waiting for it to get pulled in: #942
wujek-srujek commentedon Jul 10, 2023
Would be nice to get this merged. In the meantime, I import
permission_handler_platform_interface: ^3.11.1and usePermissionHandlerPlatform.instance.checkServiceStatus(Permission.bluetooth).JeroenWeener commentedon Jul 11, 2023
Hi @wujek-srujek, thanks for chiming in.
We are aiming to get this in soon.
See #1099, #1100, #1101, #1102 for progress on the feature.
Please note that the changes there exceed the changes in #942, as we found that the iOS implementation does not correctly return the service status. You may therefore find that you get
ServiceStatus.disabled, regardless of the Bluetooth state, when using #942 in combination withpermission_handler_platform_interface: ^3.11.1as you described.JeroenWeener commentedon Jul 13, 2023
This issue is waiting for #1100 to be merged.
JeroenWeener commentedon Jul 13, 2023
Hi everyone!
The feature is now available on the latest version of the plugin. To pull it in, just run
flutter pub upgradein your project that has a dependency on eitherpermission_handlerorpermission_handler_apple. Check thepubspec.lockfile to make sure the dependency topermission_handler_appleis9.1.4. Aspermission_handler_appleis endorsed bypermission_handler, you do not need to explicitly list it in yourpubspec.yamlfile.