I am looking for code that can automatically enable Bluetooth discoverability on my phone app every time the app is opened. I would like this to work on multiple platforms, ideally with a JavaScript method if possible since I will be using PhoneGap to translate it in the end anyway.
Update: Users will be informed about how the app works before downloading it. The goal is to improve usability by reducing the user's effort in navigating through menus to enable Bluetooth themselves. This feature is just one of several that the app will utilize on their phone. I didn't mention this earlier because I'm new here and thought the question should only focus on the code. Thank you for your help!