Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to skip the "Unable to access all assets on the device" #35

Closed
Egemen-Arslandogan opened this issue Dec 5, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@Egemen-Arslandogan
Copy link

onPermissionDenied method not working. I would like to remove the "Unable to access all assets on the device" screen and allow them to continue to the "Continue with limited access" screen automatically if they chose to only give limited access. How can i do that?

@Theoarnan
Copy link

onPermissionDenied method not working. I would like to remove the "Unable to access all assets on the device" screen and allow them to continue to the "Continue with limited access" screen automatically if they chose to only give limited access. How can i do that?

image
I have same problem with you bro..

Please help help 😭

@Egemen-Arslandogan
Copy link
Author

Egemen-Arslandogan commented Dec 6, 2023

onPermissionDenied method not working. I would like to remove the "Unable to access all assets on the device" screen and allow them to continue to the "Continue with limited access" screen automatically if they chose to only give limited access. How can i do that?

image I have same problem with you bro..

Please help help 😭

My solution;

*Download the library manually from github and add it to the project main directory. (delete example dir)

  • Give path extension from your pubspec.yaml file:
 insta_assets_picker:
     path: 'insta-assets-picker'

*Open the lib/src/assets_picker.dart file from the library files you added to your project and remove the following method

ps = await _permissionCheck(); (x2)

@LeGoffMael
Copy link
Owner

Related to fluttercandies/flutter_wechat_assets_picker#285. I will expose the limitedPermissionOverlayPredicate parameter so that you can use it.

InstaAssetPicker.pickAssets(
  context,
  ...
  limitedPermissionOverlayPredicate: (PermissionState state) => false, // here return whether to show the limited access screen or not based on the permission state
);

@LeGoffMael
Copy link
Owner

New versions 2.2.1 & 2.3.0-dev.2 were deployed with the change. Please check it out :)

@LeGoffMael LeGoffMael added the enhancement New feature or request label Dec 7, 2023
@Egemen-Arslandogan
Copy link
Author

Egemen-Arslandogan commented Dec 7, 2023

fluttercandies/flutter_wechat_assets_picker#285 ile ilgili . limitedPermissionOverlayPredicateKullanabilmeniz için parametreyi açığa çıkaracağım .

InstaAssetPicker.pickAssets(
  context,
  ...
  limitedPermissionOverlayPredicate: (PermissionState state) => false, // here return whether to show the limited access screen or not based on the permission state
);

This is the feature I was looking for! Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants