flutter_packages icon indicating copy to clipboard operation
flutter_packages copied to clipboard

[ BUG ] : Failed to find configured root that contains /data/data/com.music.impapp/cache/tempImage.jpg , image share is not working

Open mohamed-815 opened this issue 1 year ago • 4 comments

Plugin name For e.g. - Appinio social share , Appinio Swiper etc.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3
  4. Step 4

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

mohamed-815 avatar Apr 22 '24 12:04 mohamed-815

image share is not working, it showing some path issue to twitter D/error (24672): Failed to find configured root that contains /data/data/com.music.impapp/cache/tempImage.jpg

mohamed-815 avatar Apr 22 '24 12:04 mohamed-815

share any video or image

ghost avatar Apr 22 '24 14:04 ghost

ok

mohamed-815 avatar Apr 24 '24 06:04 mohamed-815

To solve the issue instead of using documented path:

<?xml version="1.0" encoding="utf-8"?> <paths> <external-path name="external_files" path="." /> </paths>

Try using this path:

<?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <cache-path name="cache_files" path="/"/> </paths>

bharatmk2567 avatar May 07 '24 08:05 bharatmk2567

To solve the issue instead of using documented path:

<?xml version="1.0" encoding="utf-8"?> <paths> <external-path name="external_files" path="." /> </paths>

Try using this path:

<?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <cache-path name="cache_files" path="/"/> </paths>

It worked before, but now it's an error E/DatabaseUtils(17101): Writing exception to parcel E/DatabaseUtils(17101): java.lang.SecurityException: Permission Denial: reading androidx.core.content.FileProvider uri content://com.xxx.provider/cache_files/64898.jpg from pid=13761, uid=10168 requires the provider be exported, or grantUriPermission() E/DatabaseUtils(17101): at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:820) E/DatabaseUtils(17101): at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:684) E/DatabaseUtils(17101): at android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:674) E/DatabaseUtils(17101): at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:548) E/DatabaseUtils(17101): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:327) E/DatabaseUtils(17101): at android.os.Binder.execTransactInternal(Binder.java:1154) E/DatabaseUtils(17101): at android.os.Binder.execTransact(Binder.java:1123)

ayyuby26 avatar Jun 06 '24 17:06 ayyuby26

hey @ayyuby26 , Did you follow the documentation correctly? Please check again and try the latest version https://pub.dev/packages/appinio_social_share

khanmujeeb687 avatar Jul 21 '24 22:07 khanmujeeb687