Baseflow / Baseflow/flutter-permission-handler
[app-to-app] Request permission failed after integrating flutter framework
- Dominant language
- Dart
- Stars
- 2.2k
- Forks
- 970
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 2
Description
## 💬 Questions and Help
I build iOS framework with command `flutter build ios-framework`, and my business contains Camera Permission Request.
After the framework is integrated, the permission request failed.
I know I can add config in Podfile:
```
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
#dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_LOCATION=1',
'PERMISSION_PHOTOS=1',
'PERMISSION_CAMERA=1'
]
end
end
end
```
But if the flutter project is built as framework, it won't work, because it won't add the right macro such as **PERMISSION_LOCATION=1** to the flutter target.
What should I do?
Contributor guide
Assessment
This issue has not been assessed yet.