cordova-plugin-device-name
cordova-plugin-device-name copied to clipboard
[Android] How come Bluetooth adapter is required?
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?
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.