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

AppWidget ImageGlanceWidget Permission Issue on Restart #464

Open
nrotonda opened this issue Apr 24, 2024 · 0 comments
Open

AppWidget ImageGlanceWidget Permission Issue on Restart #464

nrotonda opened this issue Apr 24, 2024 · 0 comments

Comments

@nrotonda
Copy link

I just ran your AppWidget app and added the Random Images widget to the home screen. Then, restarted the device and received the error below. I am running the app on a device using API 34. Looks like the permissions are getting revoked, or the image is no longer there and the widget doesn't know that. Any way to check for the read permission in the widget and then force another Worker to run? Can't surround the composables with a try catch to catch this error.

java.lang.SecurityException: Permission Denial: reading androidx.core.content.FileProvider uri content://com.example.android.appwidget.fileprovider/widget_images/90a6ee10a2cee258dc6137b3cd810a1b0b40be3b5060912d23dd20ce57a01e70.1 from pid=1013, uid=10166 requires the provider be exported, or grantUriPermission()

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant