Closed changewhite closed 20 hours ago
Screenshots?
Same issue. Only on Android. iOS is working fine.
Solved it. I had following line in AndroidManifest.xml:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
This does not work on higher android devices. Do the following:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:replace="android:maxSdkVersion" android:maxSdkVersion="28" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
Also, make sure you go to app settings and disallow and then allow the photos and videos again. Make sure you request photos, videos through the following code:
final PermissionState ps = await PhotoManager.requestPermissionExtend();
if (ps.isAuth || ps.hasAccess) {
//Your code
}
DO NOT USE: var status = await Permission.photos.request();
Thank you for your answer, but I have tried it on my end and it still doesn't work. However, the video captured through wechat_camera_picker can be obtained using photo_manage
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
Thank you for your answer, but I have tried it on my end and it still doesn't work. However, the video captured through wechat_camera_picker can be obtained using photo_manage
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
Updated my comment. Check the last part.
Thank you for your answer, but I have tried it on my end and it still doesn't work. However, the video captured through wechat_camera_picker can be obtained using photo_manage
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
Updated my comment. Check the last part.
I have already obtained permission to modify the video before obtaining it, and the status returned is: PermissionStatus. granted
Uninstall the app and try again. Permission.photos.request do not seem to work as said.
Uninstall the app and try again. Permission.photos.request do not seem to work as said.
I always reinstall after adding permissions
Maybe you can create a demo and try it out @jasminder
Version
3.2.0
Platforms
Android
Device Model
SM-S911U
flutter info
How to reproduce?
Using content retrieval in the demo
Logs
No response
Example code (optional)
Contact
No response