I have already checked many solutions and nothing works. Here is what the issue is:
I have changed the name of Raspberry Pi in /etc/machine-info file, /etc/hostname file and also changed the mapping in /etc/hosts. In each of the 3 places, the name provided is "Robot-100".
I built an iOS application using ReactNative and react-native-ble-manager package https://github.com/innoveit/react-native-ble-manager. When the iPhone scans, I see "LocalName" as "Robot-100" and "name" as "raspberrypi". The iPhone even prompts the user asking to pair with "raspberrypi" (Meaning, it uses the "name" parameter").
The BLE object information that I get in ReactNative project is {"id":"D97E0B3A-CE58-7D21-BBC3-CCE12B890364","rssi":-87,"advertising":{"serviceUUIDs":["1812"],"kCBAdvDataRxSecondaryPHY":0,"kCBAdvDataRxPrimaryPHY":1,"isConnectable":1,"localName":"Robot-100","kCBAdvDataTimestamp":630620030.238658},"name":"raspberrypi"}
I have cleared the previously connected devices from the iPhone. Still I get the name and prompt with "raspberrypi".
This means, there is some other place where I need to change the bluetooth name of the Raspberry Pi device. It would be nice to get additional help to figure out what is wrong in the configuration.