esc_pos_bluetooth icon indicating copy to clipboard operation
esc_pos_bluetooth copied to clipboard

iPhone devices can't connect. Android is work...

Open Egemen-Arslandogan opened this issue 2 years ago • 0 comments

I haven't been able to solve this problem for about 2 weeks, can you please help?

I wrote an application that connects to a pos device (printer) via bluetooth with Flutter. I can connect and print without any problems on the Android device. But when I try it on my iphone; The printer appears on the scanning screen. But when I try to connect it does not connect. The printer's bluetooth light shows a connection for 1-2 seconds and turns off immediately. So the device tries to connect and fails right after.

I don't think there is a problem with the permissions, it already sees the printer on the scanning screen, so the bluetooth permissions are correct.

But it is causing problems while connecting. In addition, as additional information; When trying to connect with Android, the MAC address of the printer is different, while trying to connect with iPhone, the MAC address is different. I wonder if iOS is making a crypto?

I wonder if the iphone has taken a security measure because it is in test mode?

Libraries I use:

flutter_bluetooth_basic

esc_pos_bluetooth

Both libraries have the same problem.

By the way, I tested it from 3 different iphone devices, so there is no problem with the device I use.

Looking forward to your help and suggestions. Thank you.

Egemen-Arslandogan avatar Dec 04 '21 02:12 Egemen-Arslandogan