Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
How can I repair my flutter ios software not displaying the permission dialog am at present utilizing permission_handler 10.0.0 package deal the package deal works high-quality in android however on ios the dialog to both grant or deny the permission shouldn’t be pop-up in any respect.
Right here is the operate for the request
chkPermissionLoc(ctx) async {
var perLocation = await Permission.location.standing;
if (perLocation.isDenied) {
await [Permission.location].request();//This is not working
print('Permission is Denied');
} else if (perLocation.isGranted) {
print('Permission is Granted');
} else if (perLocation.isPermanentlyDenied) {
print('Permission is completely denied');
} else if (perLocation.isRestricted) {
print('Permission is OS restricted');
} else if (perLocation.isLimited) {
print('Permission is Restricted');
}
}
The applying merely printed Permission is Denied however the operate earlier than it which is suppose to point out the dialog shouldn’t be getting known as in any respect.
I’ve added the string values within the data.plist file as per the documentation within the package deal however nonetheless the identical problem.
<key>NSLocationWhenInUseUsageDescription</key>
<string>Want location when in use</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>At all times and when in use!</string>
<key>NSLocationUsageDescription</key>
<string>Older gadgets want location.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Can I haz location all the time?</string>
Any assist might be tremendously appreciated
[ad_2]