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

fix: ANR and gallery saving issues #73

Open
BBarisKilic opened this issue Aug 8, 2024 · 0 comments
Open

fix: ANR and gallery saving issues #73

BBarisKilic opened this issue Aug 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@BBarisKilic
Copy link
Member

Description

We are encountering issues where some users experience ANR (Application Not Responding) problems during the video saving process to the gallery, particularly on newer Android versions (e.g., Android 11, 12, 13, and 14). Additionally, there are reports that videos saved using the image_gallery_saver plugin do not appear in the gallery.

Issue Details

  • ANR Occurrence: Users on Android 11, 12, 13, and 14 are experiencing ANRs during the video saving process. This issue seems to be specific to newer Android versions.
  • Gallery Visibility: After saving videos, users report that the saved videos are not visible in the gallery.

Steps to Reproduce

  1. Use the image_gallery_saver plugin to save a video on a device running Android 11 or newer.
  2. Observe if an ANR occurs during the process.
  3. Check if the saved video appears in the gallery.

Expected Behavior

  • The video should be saved without causing an ANR.
  • The saved video should be visible in the gallery.

Current Behavior

  • ANRs are occurring during the video saving process.
  • Videos saved are not appearing in the gallery.

Recommendations

  1. Check Alternatives: Investigate alternative plugins or methods for saving videos to the gallery. The image_gallery_saver plugin may not fully support newer Android versions.

  2. Review App Permissions: Ensure your app correctly requests and handles permissions, especially for Android 11 and above. Verify that you are requesting runtime permissions for media access and storage in accordance with the latest Android permission policies.

  3. Optimize for Scoped Storage: Update your implementation to comply with scoped storage changes introduced in Android 10 and above. Ensure that media files are saved using the appropriate APIs and that background operations are managed to avoid ANRs.

@BBarisKilic BBarisKilic added bug Something isn't working help wanted Extra attention is needed labels Aug 8, 2024
@BBarisKilic BBarisKilic self-assigned this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant