T Turbo3 Active Member Licensed User Longtime User Apr 25, 2023 #1 Is there a way to get the BluetoothAdmin Enable/Disable function to work that turns Bluetooth off and on? On Android 12 BTAdmin.Enable returns true and Bluetooth is turned on. On Android 13 BTAdmin.Enable returns false the Bluetooth is not turned on BTAdmin.Disable also returns the same results. Works for Android 12, Fails for Android 13 Is there a fix? Is there a new Permission and if yes what is it?
Is there a way to get the BluetoothAdmin Enable/Disable function to work that turns Bluetooth off and on? On Android 12 BTAdmin.Enable returns true and Bluetooth is turned on. On Android 13 BTAdmin.Enable returns false the Bluetooth is not turned on BTAdmin.Disable also returns the same results. Works for Android 12, Fails for Android 13 Is there a fix? Is there a new Permission and if yes what is it?
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2023 #2 It always fails with Android 13+ and targetSdkVersion >= 31. This is a new restriction. Upvote 0
T Turbo3 Active Member Licensed User Longtime User Apr 25, 2023 #3 It actually works on my Pixel 3 running SDK 31 with my app set to targetSdkVersion = 33. Could you mean new restriction for devices running SDK>31? Based on the new restriction, I was thinking of disabling (hiding) the option in my app to enable/disable Bluetooth on devices running SDK>31. Upvote 0
It actually works on my Pixel 3 running SDK 31 with my app set to targetSdkVersion = 33. Could you mean new restriction for devices running SDK>31? Based on the new restriction, I was thinking of disabling (hiding) the option in my app to enable/disable Bluetooth on devices running SDK>31.
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2023 #4 It fails on Android 13+ devices = sdk 33+. Upvote 0
T Turbo3 Active Member Licensed User Longtime User Apr 25, 2023 #5 I don't have a device running sdk 32 but based on that it should still work. So I will hide option for devices running sdk 33+. Thanks for you help. Upvote 0
I don't have a device running sdk 32 but based on that it should still work. So I will hide option for devices running sdk 33+. Thanks for you help.