NordicSemiconductor / Flutter-nRF-Connect-Device-Manager

A Flutter plugin for McuMgr libraries for Android and iOS.
BSD 3-Clause "New" or "Revised" License
36 stars 17 forks source link

Bluetooth Permission Request on IOS pop up as soon as app is opened even when library is not even configured. #81

Closed jchirinosodio closed 7 months ago

jchirinosodio commented 7 months ago

Steps to reproduce:

As soon as opened a project with just the fact of having mcumgr_flutter added as a dependency in your pubspec.yaml file, as soon as you run iOS Flutter a permission for Bluetooth is displayed.

This is inconvenient due it forces developers using this library into a workflow without control of when to require or ask a user for such permission.

And this is even worst when you have other permissions that need to pop as soon as the app is opened, such as login using a web browser, because the permission shows super fast providing a bad UX experience.

I would expect this behavior if I am implementing or calling any methods of this library, but not just by simply adding into the project pubspec.yaml, it should not "Auto run" a permission request when any project is launched for the first time, and the documentation does not mention anything about it neither.

This is not replicable on Android.

NickKibish commented 7 months ago

Hi @jchirinosodio

Sorry for the delay. I've just fixed that. You can check the latest release (0.4.1).

I hope that is what you expected.

jchirinosodio commented 7 months ago

This is super awesome! Thank you so much @NickKibish, really excited to test it out!