Android 12 New Bluetooth Permissions

100% working solution : no need any 3rd party plugin manifest code: <!–BLUETOOTH PERMISSION–> <!– Request legacy Bluetooth permissions on older devices. –> <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 … Read more

Run iPhone as an iBeacon in the background

Standard CoreBluetooth advertisements can broadcast while the app is in the background, but not if they were started with CLBeaconRegion dictionary. The workaround is to ditch CoreLocation framework altogether and create your own proximity “framework” using only CoreBlueTooth. You still need to use the appropriate background specifiers in the Info.plist file (e.g. bluetooth-peripheral and bluetooth-central). … Read more

Android BLE API: GATT Notification not received

It seems like you forgot to write the Descriptor which tells your BLE device to go in this mode. See the code lines that deal with descriptor at http://developer.android.com/guide/topics/connectivity/bluetooth-le.html#notification Without setting this descriptor, you never receive updates to a characteristic. Calling setCharacteristicNotification is not enough. This is a common mistake. code snipped protected static final … Read more

Can an Android device act as an iBeacon?

YES This is possible on Android 5+, and you can find open-source code for transmitting as a beacon in the Android Beacon Library. There is also a full-featured version of a beacon transmitter in the Beacon Scope app in the Google Play Store. Here’s an example of transmitting iBeacon with the Android Beacon Library: Beacon … Read more

Detecting state changes made to the BluetoothAdapter?

You will want to register a BroadcastReceiver to listen for any changes in the state of the BluetoothAdapter: As a private instance variable in your Activity (or in a separate class file… whichever one you prefer): private final BroadcastReceiver mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { final String action … Read more

(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1)

I would try CoolTerm and see if that works for you. I was having a similar issue connecting a speaker with a Sigma DSP chip inside via USB connection, so if you are having trouble seeing external devices it may be that the device is incompatible with your computer. Download CoolTerm and go to options … Read more

Bluetooth hands free client volume control

Could you please try below. I did not try myself but sounds similar problem if I understand correctly: Android Bluetooth Earpiece Volume “Android is using int 6 for bluetooth volume and not documented. Just use 6 instead of AudioManager.STREAM_VOICE_CALL and try, It should work“ I assume for you will be to replace AudioManager.STREAM_BLUETOOTH_SCO with 6. … Read more

How to check if bluetooth is enabled programmatically?

There you go: BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (mBluetoothAdapter == null) { // Device does not support Bluetooth } else if (!mBluetoothAdapter.isEnabled()) { // Bluetooth is not enabled 🙂 } else { // Bluetooth is enabled } With uses-permission <uses-permission android:name=”android.permission.BLUETOOTH” android:required=”false” />