Closed divyaEncodework closed 1 year ago
just make sure not to call any FlutterBluePlus code until needed and it should work i think.
hii @chipweinberger I am not using anything of flutter blue plus on the splash screen or login screen still permission dialogue is showing on startup
not sure. try looking at the device logs using a Macbook and opening Console.app.
let me know the fix.
i cant find any Bluetooth services in logs and I am not using it in start up
perhaps you permissions plist has issues? try removing the bluetooth permission and see what happens.
but I need Bluetooth permissions on another screen
I know. But temporarily remove the permission to help troubleshoot. Does it still happen?
if I remove permission then my app crashes on my iPhone with the message that app is trying to access data without permission
let me know if you fix it.
This might happen when we instantiate the CBCentralManager.
Try searching the code and try commenting those lines out and seeing what happens.
did you figure it out?
no, precisely that's because of CBCentralManager. but I don't know which file I have to change.
The CBCentralManager is only invoked if you interact with FlutterBluePlus.
If you see any logs like:
2023-07-24 21:29:14.845 macos[72103:5766776] [FBP-iOS] handleMethodCall: XXXXXXXX
Then the problem is in your code. You should not be calling any FlutterBluePlus functions at all.
no, I am not using any flutterBluePlus functions and not receiving logs like this. it asks permission in my login screen and I am not even importing Flutterblueplus
Have you tried commenting out all of your flutterBluePlus code?
I can't do this it's a live project we need it for device configurations.
? I am not asking for you to save the changes.
Just comment out the code, click "run", and see what happens.
I comment out all the code and run the application Bluetooth permission dialogue still occurs.
ok, I found that this dialogue is not because of your plugin. thank you.
glad you figured it out!
@boskokg when I start my application in ios Bluetooth permission is asked on startup but I need Bluetooth on only one screen how can I manage it? if anyone has a solution please update me thank you