cordova-plugin-device-name icon indicating copy to clipboard operation
cordova-plugin-device-name copied to clipboard

[Android] How come Bluetooth adapter is required?

Open Crono1981 opened this issue 5 years ago • 1 comments

Not a rant, only genuine curiosity :)

To the best of my knowledge, Android's device name isn't tied up to just Bluetooth operations. It is also used as a label for a user's registered devices.

Hence, I find it strange that Bluetooth adapter is a requirement for this plugin to work properly.

Any advice? What am I missing here?

Crono1981 avatar May 22 '19 16:05 Crono1981

It is required for devices with Android Jelly Bean (API 18) and below. Probably required up to Marshmallow (API 23). Above that it is not required anymore. There wasn't an easy way to get the name of the device other than via the bluetooth name before Android M to my knowledge.

becvert avatar May 23 '19 08:05 becvert