Open tomasbaran opened 4 years ago
@tomasbaran I checked your repo and I believe that at least for Bug C your problem is that you are calling the method on initState() and that's not correct because the widget will not be mounted.
This will end up calling the method multiple times.
Please see https://www.didierboelens.com/2019/04/addpostframecallback/ for detailed information.
🐛 Bug Report
These are minor bugs but I wanted to report them anyway. There are actually 3 different bugs but I believe they are related so I'm reporting them as one.
Expected behavior
Bug A
there shouldn't be ERROR_ALREADY_REQUESTING_PERMISSION
Bug B
Request permission pop up shouldn't get stuck and should pop up right away.
Bug C
There should NOT be this error:
Reproduction steps
For reproduction, please see this repo: https://github.com/tomasbaran/location_permissions
Bug A
Bug B
This issue always happens on Simulator and sometimes happens on real iPhone sometimes not
Bug C
Configuration
Version: 2.0.5
Platform: