The application does not see the HC-06 bluetooth

Hello everyone I am doing a project related to arduino mega + hc-06 bluetooth. I create applications in the mit app inventor. So here's the problem, the phone detects Bluetooth and connects, but it doesn't see it in the ListPicker app. Please tell me what I'm doing wrong.


ListPicker

1 Like

Thanks for the feedback!
I tried your app and read the article. But it didn't help me. I downloaded the bluetooth app from the play market. Everything works there. But my app doesn't work.

Device name & Android version?

1 Like

Galaxy A23. Version android 13

Hmm, should work. Did you try my second test aia. If so, post screenshot(s).

1 Like

I tried it. Through the online AI companion, then your and my app sees bluetooth and works. But if you download it, it doesn't see Bluetooth.

Try this one:

and post a screenshot.

1 Like

Your application was found by Bluetooth and connected


What do I need to do to make my app work?

I'll answer later... (I'm not at home)

1 Like

Ask for permission
Taifun


(Canned Response ABG - Bluetooth non-BLE SCAN Permission Blocks)

The easiest solution, for immediate relief
(from @Barry_Meaker) ...

I had the same issue. The problem is your app does not have permission to see nearby devices. The solution is to give your app permission on your phone (no code changes in your app).

on your phone,

  • goto settings
  • search for your app
  • in App Info for your app select Permissions
  • change Nearby Devices from Not Allowed to Allowed
  • Done

By the way, the very first time you run the app, Android will ask if you want to grant the app this permission. If you say no, or ignore the pop-up, the permission will be set as Denied. Android will not ask again.

A more complex approach, for professional app development:

See Bluetooth liste of devices deosn't work anymore - #7 by Anke
Special note for Xiaomi devices:
I have an error with bluetooth on android 12, Xiaomi Poco X3 NFC - #20 by Patryk_F

Thank you very much! It worked

I had already posted the same (relevant) links. So what did @Taifuns's last post change that? :upside_down_face:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.