Is it possible to remove 'Allow Once' from location authorization request?

Viewed 304

I am developing a React Native application that uses maps and location permissions. I want user to select just "Allow while using app" or "Don't Allow" options. But it shows me the "Allow once" option as well.

enter image description here

Here is my Info.plist file edits;

<key>NSLocationWhenInUseUsageDescription</key>
<string>Fenomen Air Sports wants permission to be able to record your flights</string>

It is ok if I don't use NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationAlwaysUsageDescription in location settings, so it does not show Always Allow option here;

enter image description here

Can I remove the "Allow Once" option from the permission request if it is possible?

I also checked some sources;

Thanks in advance

0 Answers
Related