Location permission being requested when user signs in

Troubleshooting

I have a multi view app. The home view (in screenshot) does not request or need location permissions. I recently added a new view that conditionally asks for location permission when a user taps a button for the first time. I added the location permission explain text in settings > permissions, and yet, I'm seeing two strange issues:

1. The location permission dialog (with explainer text) is popping up on the home view, which doesn't ask for location permission at all, no do anything with location.

  1. Apple is alerting me on beta builds that: ITMS-90683: Missing purpose string in Info.plist - Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the “Runner.app” bundle should contain a NSLocationAlwaysAndWhenInUseUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data...

Note that I also request Notification permissions, and that also pops up directly after a user logs in, but I read in this forum that is working as-designed even if it's wonky. It's a really awful user experience to ask for all these permissions prior to them being needed - so I'm hoping that at least the location permission issue can be fixed...

What have you tried so far?

Toggling the permission. Adding the NSLocationAlwaysAndWhenInUseUsageDescription as a custom purpose string (it's just deleted by the UI after reload. I also contacted support but have not heard back.

Did you check FlutterFlow's Documentation for this topic?
Yes
5
9 replies