Comments (8)
Did you manage to resolve this issue? In this comment you mentioned you would try again, I was curious if you managed to resolve the issue.
from flutter-permission-handler.
Here is the info.plist and Podfile I have configured
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.camera
'PERMISSION_CAMERA=1',]
end
# End of the permission_handler configuration
<key>NSCameraUsageDescription</key>
<string>Ứng dụng này yêu cầu quyền truy cập vào máy ảnh.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Ứng dụng này yêu cầu quyền truy cập vào thư viện ảnh.</string>#
from flutter-permission-handler.
Hi @Ngochiendev,
Have you tried reproducing the problem with the application I have provided in this comment?
As mentioned there, using these steps I am unable to reproduce the issue which makes it really hard to help. Please have a really careful look at the settings in your ios/Podfile
and compare it with the setup I have provided in the mentioned comment.
You can also try:
- Run
flutter clean
- Delete the
ios/Pods
folder - Delete the
ios/Podfile.lock
file - In the
ios
folder runpod install
. - In the root of your project run
flutter pub get
.
from flutter-permission-handler.
Hi @Ngochiendev,
Have you tried reproducing the problem with the application I have provided in this comment?
As mentioned there, using these steps I am unable to reproduce the issue which makes it really hard to help. Please have a really careful look at the settings in your
ios/Podfile
and compare it with the setup I have provided in the mentioned comment.You can also try:
- Run
flutter clean
- Delete the
ios/Pods
folder- Delete the
ios/Podfile.lock
file- In the
ios
folder runpod install
.- In the root of your project run
flutter pub get
.
I tried the same, but still got the same error
from flutter-permission-handler.
I have the same problem, and in my case, besides camera, photos always return Denied
from flutter-permission-handler.
@luomo-pro can you confirm you can reproduce the issue with the example application provided in this comment?
Mentioning that you have the same problem doesn't really help solving the issue, as I am unable to reproduce it.
from flutter-permission-handler.
@mvanbeusekom
I followed your example and added it inside ios/Podfile:
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_CAMERA=1',
]
The problem was successfully resolved and everything is now working fine.
Thank you!
from flutter-permission-handler.
Did you manage to resolve this issue? In this comment you mentioned you would try again, I was curious if you managed to resolve the issue.
after I deleted and reinitialized the pod file, then added this code it worked
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_CAMERA=1',
]
The problem was successfully resolved and everything is now working fine.
Thank!
from flutter-permission-handler.
Related Issues (20)
- Permission.backgroundRefresh.status not available anymore HOT 1
- /usr/include/c++/11/cmath:45:15: fatal error: math.h: No such file or directory *** 45 | #include_next <math.h> *** | ^~~~~~~~ *** compilation terminated. HOT 2
- [Bug]: Permission handler doesn't work on Android 14 HOT 1
- [Question]: isGranted getter method conflict HOT 2
- [Bug]: iOS GCC_PREPROCESSOR_DEFINITIONS 设置问题 HOT 1
- [Bug]: The existing windows implementation does not work in Windows 7 HOT 1
- [Feature request]: Detect when a user give a permission just for once HOT 2
- [Regression]: iOS now requires to obtain "When in use" location permission before requesting "Always" location permission
- [Question]: iOS `photosAddOnly` and `photo` always return `permanentlyDenied`, without dialog or app settings entry HOT 2
- [Question]: why set calendar Deprecated ? Forces me to use calendarFullAccess? HOT 1
- [Bug]:Permission.isDenied always return true. HOT 2
- [Question]: How to release or close camera after take photo in web flutter app ? HOT 1
- [Question]: add Android 14 permission READ_MEDIA_VISUAL_USER_SELECTED support HOT 2
- [Question]: Is POST_NOTIFICATIONS permission missing? HOT 5
- [Question]: How do we access the READ_PHONE_NUMBERS permission HOT 1
- [Bug]: Bluetooth permission on iOS permanently denied HOT 8
- [Question]: FormatException: Missing extension byte (at offset 1) HOT 4
- Remove references to deprecated v1 Android embedding HOT 1
- Kotlin version of package HOT 2
- [Feature request]: Implement full screen intent android permission request HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-permission-handler.