appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mohamed-815 opened this issue · 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.

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

share any video or image

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>

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)

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