Git Product home page Git Product logo

Comments (8)

mvanbeusekom avatar mvanbeusekom commented on August 11, 2024 1

@Ngochiendev,

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.

Ngochiendev avatar Ngochiendev commented on August 11, 2024

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.

mvanbeusekom avatar mvanbeusekom commented on August 11, 2024

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:

  1. Run flutter clean
  2. Delete the ios/Pods folder
  3. Delete the ios/Podfile.lock file
  4. In the ios folder run pod install.
  5. In the root of your project run flutter pub get.

from flutter-permission-handler.

Ngochiendev avatar Ngochiendev commented on August 11, 2024

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:

  1. Run flutter clean
  2. Delete the ios/Pods folder
  3. Delete the ios/Podfile.lock file
  4. In the ios folder run pod install.
  5. In the root of your project run flutter pub get.

I tried the same, but still got the same error

from flutter-permission-handler.

luomo-pro avatar luomo-pro commented on August 11, 2024

I have the same problem, and in my case, besides camera, photos always return Denied

from flutter-permission-handler.

mvanbeusekom avatar mvanbeusekom commented on August 11, 2024

@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.

luomo-pro avatar luomo-pro commented on August 11, 2024

@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.

Ngochiendev avatar Ngochiendev commented on August 11, 2024

@Ngochiendev,

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.