Cannot replicate a BLE related bug from app store distribution

Hello all,

I am very new to iOS development and my question is more of a conceptual one than code related.

I have an app that basically scans for bluetooth devices around it with the name of my company and displays them to connect. I am using the flutter_blue plugin and everything seems to be working for both apple and android ... except with iOS 13+ devices ... and only when downloaded from the app store. I run the exact same code I submit to the app store on my iPad through Xcode and it works as expected, but when I download it from the app store the scan does not show any results except for those devices that I have already paired to / am currently connected to.

Any help would be much appreciated, Thanks in advance.
Too bad you're not working with CoreBluetooth API itself. I'm not familiar with Flutter's implementation around CoreBluetooth, but there is behavioral change with iOS 13. Namely, there is a permission / authorization change requiring users grant permission to BLE usage.

When you install from the App Store, do you see the prompt asking for permission to use BLE? If the flutter plugin does not handle the unauthorized scenarios introduced in iOS 13, and then revised in iOS 13.1 API in code, it might explain why you wouldn't be seeing discoveries. That wouldn't however explain why you can't see it when deploying with Xcode.
Cannot replicate a BLE related bug from app store distribution
 
 
Q