How I get your location: A story of permissions
summary
Built a reliable Flutter flow for location that uses the permission and location libraries and handles foreground vs background differences, noting Android lets apps request twice but iOS only once. Solves iOS quirks where location services off blocks requests by doing onboarding and redirecting to settings. Detects native permission modal by watching lifecycle transitions (inactive→resume) with an app state watcher and two booleans (modal shown, button pressed) so the code either waits then updates status or redirects to settings, giving a working permission and location flow.
AI-written summary · about
chapters (9)
- 0:00Location permissions intro
- 1:06Permission libraries
- 1:47Foreground vs background
- 3:11Permission requests
- 4:16iOS location requirements
- 6:01Background access challenges
- 8:05App lifecycle hacking
- 9:49iOS vs library states
- 12:19Final thoughts
related talks
14mWhat I wish I knew before working with background location
37mWhy "Where" Matters: Exploring the Power of Location-Aware Apps
20mHow Flutter Can Change the Future of Urban Communities
32mBuilding for iOS with Flutter
36mSecuring Flutter Apps
24mDynamic Island & Live Activities with Flutter & Swift
41mThe Flutter journey from a Personal App to a Successful Production App
40mHow I met Flutter
