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
When requesting camera or photo permissions, nothing happens. Requesting them again still does nothing, but the following error appears in the log
Requesting camera or photo permissions results in no action.
Requesting camera or photo permissions again still does nothing, but the following error is logged:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(ERROR_ALREADY_REQUESTING_PERMISSIONS, A request for permissions is already running, please wait for it to finish before doing another request (note that you can request multiple permissions at the same time)., null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7) #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
installer.pods_project.targets.eachdo |target|
flutter_additional_ios_build_settings(target)target.build_configurations.eachdo |config|
config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES']='YES'config.build_settings['ENABLE_BITCODE']='NO'# You can enable the permissions needed here. For example to enable camera# permission, just remove the `#` character in front so it looks like this:## ## dart: PermissionGroup.camera# 'PERMISSION_CAMERA=1'## Preprocessor definitions can be found in: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler_apple/ios/Classes/PermissionHandlerEnums.hconfig.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)',## dart: PermissionGroup.calendar# 'PERMISSION_EVENTS=1',## dart: PermissionGroup.reminders# 'PERMISSION_REMINDERS=1',## dart: PermissionGroup.contacts# 'PERMISSION_CONTACTS=1',## dart: PermissionGroup.camera'PERMISSION_CAMERA=1',## dart: PermissionGroup.microphone# 'PERMISSION_MICROPHONE=1',## dart: PermissionGroup.speech# 'PERMISSION_SPEECH_RECOGNIZER=1',## dart: PermissionGroup.photos'PERMISSION_PHOTOS=1',## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]# 'PERMISSION_LOCATION=1',## dart: PermissionGroup.notification'PERMISSION_NOTIFICATIONS=1',## dart: PermissionGroup.mediaLibrary# 'PERMISSION_MEDIA_LIBRARY=1',## dart: PermissionGroup.sensors# 'PERMISSION_SENSORS=1', ## dart: PermissionGroup.bluetooth# 'PERMISSION_BLUETOOTH=1',## dart: PermissionGroup.appTrackingTransparency# 'PERMISSION_APP_TRACKING_TRANSPARENCY=1',## dart: PermissionGroup.criticalAlerts# 'PERMISSION_CRITICAL_ALERTS=1']endend
Screenshots or video
iOS 18.0.1output.mp4iOS 16.0output2.mp4
Version
11.3.1
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.2, on macOS 15.1 24B83 darwin-arm64, locale zh-Hant-TW) • Flutter version 3.22.2 on channel stable at /Users/tonyliao/fvm/versions/3.22.2 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (6 months ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at /Users/tonyliao/Library/Android/sdk • Platform android-35, build-tools 35.0.0 • ANDROID_HOME = /Users/tonyliao/Library/Android/sdk • ANDROID_SDK_ROOT = /Users/tonyliao/Library/Android/sdk • Java binary at: /Users/tonyliao/Applications/Android Studio Koala Feature Drop 2024.1.2 RC 1.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314) • All Android licenses accepted.[✓] Xcode - develop for iOS and macOS (Xcode 16.0) • Xcode at /Applications/Xcode-16.0.0.app/Contents/Developer • Build 16A242d • CocoaPods version 1.15.2[✓] Android Studio (version 2022.3) • Android Studio at /Applications/Android Studio.Giraffe 2022.3.1.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)[✓] Android Studio (version 2024.1) • Android Studio at /Users/tonyliao/Applications/Android Studio Koala Feature Drop 2024.1.2 RC 1.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)[!] Android Studio (version unknown) • Android Studio at /Users/tonyliao/Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart ✗ Unable to determine Android Studio version. • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)[✓] VS Code (version 1.95.3) • VS Code at /Applications/Visual Studio Code-Arm64.app/Contents • Flutter extension version 3.102.0[✓] Connected device (5 available) • Pixel 9 (mobile) • 46271FDAQ111W1 • android-arm64 • Android 15 (API 35) • CP081 iPhone 15 (mobile) • 00008122-1119389E0A82201E • ios • iOS 18.0.1 22A3370 • CP038 iPhone 8 (mobile) • 85315293e171117d61bdca83470831a4a5185f84 • ios • iOS 16.0 20A362 • macOS (desktop) • macos • darwin-arm64 • macOS 15.1 24B83 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1 24B83 darwin-arm64[✓] Network resources • All expected network resources are available.
The text was updated successfully, but these errors were encountered:
tonyliao273
changed the title
[Bug]: iOS 18.0.1 can't request for camera / photos permission
[Bug]: Unable to request camera or photo permissions on iOS 18.0.1
Dec 12, 2024
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
When requesting camera or photo permissions, nothing happens. Requesting them again still does nothing, but the following error appears in the log
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(ERROR_ALREADY_REQUESTING_PERMISSIONS, A request for permissions is already running, please wait for it to finish before doing another request (note that you can request multiple permissions at the same time)., null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
#2 MethodChannelPermissionHandler.requestPermissions (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:80:9)
#3 PermissionActions.request (package:permission_handler/permission_handler.dart:109:10)
Note:
Expected results
On iOS 18.0.1 devices, requesting camera or photo permissions will trigger the system permission UI or any callbacks.
Actual results
On iOS 18.0.1 devices, requesting camera or photo permissions does not trigger the system permission UI or any callbacks.
Code sample
Code sample
Screenshots or video
iOS 18.0.1
output.mp4
iOS 16.0
output2.mp4
Version
11.3.1
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: