You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
Android
iOS
Windows
Steps to reproduce
It not supporting . When application open , App crashes,
Compile and Target SDK - 34 this issue occurs.
Will pop up on the permission is throws the allow limit.
Future<bool> requiredPermissions() async {
bool allowPermission =false;
// Get Android SDK versionbool isSdkBelow34 =false;
try {
AndroidDeviceInfo androidInfo =awaitDeviceInfoPlugin().androidInfo;
int androidVersion = androidInfo.version.sdkInt;
isSdkBelow34 = androidVersion <34;
print('Mobile SDK Version: $androidVersion');
} catch (e) {
print(e);
Toast.toast("$e");
}
// Check permission statusesMap<Permission, bool> permissionsStatus = {
Permission.scheduleExactAlarm:awaitPermission.scheduleExactAlarm.status.isGranted,
Permission.reminders:awaitPermission.reminders.status.isGranted,
Permission.location:awaitPermission.location.status.isGranted,
Permission.camera:awaitPermission.camera.status.isGranted,
Permission.accessMediaLocation:awaitPermission.accessMediaLocation.status.isGranted,
Permission.storage:awaitPermission.storage.status.isGranted,
Permission.photos:awaitPermission.photos.status.isGranted,
Permission.videos:awaitPermission.videos.status.isGranted,
};
// Determine which permissions are requiredif (isSdkBelow34) {
if (!permissionsStatus[Permission.location]!) {
allowPermission =awaitshowPermissionPopup();
if (!allowPermission) returnfalse;
}
} else {
if (!permissionsStatus[Permission.scheduleExactAlarm]!||!permissionsStatus[Permission.reminders]!||!permissionsStatus[Permission.location]!) {
allowPermission =awaitshowPermissionPopup();
if (!allowPermission) returnfalse;
}
}
// Request permissions if not grantedfor (var permission in permissionsStatus.keys) {
if (!permissionsStatus[permission]!&&await permission.status !=PermissionStatus.permanentlyDenied) {
try {
await permission.request();
} catch (e) {
Toast.toast("$e");
}
}
}
returntrue;
}
Expected results
For Android Version 11 and below work fine
Android 12,13,14 (API level 34) is the Android version for SDK 34. is not Working, since while upload in playstore. it say to upload SDK 34 for security reasons.
Actual results
A pop up for Photo and Video permission, Show Allow limit, need without Allow limit button.
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
It not supporting . When application open , App crashes,
Compile and Target SDK - 34 this issue occurs.
Expected results
Actual results
A pop up for Photo and Video permission, Show Allow limit, need without Allow limit button.
Code sample
Code sample
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
^10.4.3
Flutter Doctor output
Doctor output
No exception on Exception, Showing wrong pop up.
The text was updated successfully, but these errors were encountered: