Giter Site home page Giter Site logo

Android: Failed to ensure directory: /storage/sdcard/Android/data/com.example.hellotest/files about socialsharing-phonegap-plugin HOT 10 CLOSED

eddyverbruggen avatar eddyverbruggen commented on August 20, 2024
Android: Failed to ensure directory: /storage/sdcard/Android/data/com.example.hellotest/files

from socialsharing-phonegap-plugin.

Comments (10)

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

Hi,

Have you added this permission?
< uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" / >

from socialsharing-phonegap-plugin.

eholmes avatar eholmes commented on August 20, 2024

Yes, I've added that to the AndroidManifest.xml in the root of my project.

from socialsharing-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

Could you please share your code with me, so I can reproduce the problem and find a solution?
Thanks,
Eddy (eddyverbruggen[at]gmail.com)

from socialsharing-phonegap-plugin.

eholmes avatar eholmes commented on August 20, 2024

I deleted my existing virtual devices, created new ones, and no longer see this error. Thank you for looking at my files!

from socialsharing-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

Many thanks for the update Eva.
Eddy

from socialsharing-phonegap-plugin.

thomasMary avatar thomasMary commented on August 20, 2024

Hi @EddyVerbruggen I've the same error ("Failed to ensure directory: /storage/sdcard/Android/data/...."), and so i'm not able to share on twitter or facebook.
I'm working on a real device (Android 4.4), i've the correct permission (WRITE_EXTERNAL_STORAGE)
Here is the code my js code:
-for twitter:
$cordovaSocialSharings.shareViaTwitter('I love myapp.', imageUrl, null);
-for facebook:
$cordovaSocialSharings.shareViaFacebook('I love viceversa.', imageUrl, null)
I tried for both to upload with and url or base64 image data.
What if the target device doesn't have a SD card? The plugin should still be able to share, right?
Any idea would be very appreciate. Thanks

from socialsharing-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

@thomasMary Can you try sharing a local image? One you host in your www folder somewhere?

from socialsharing-phonegap-plugin.

thomasMary avatar thomasMary commented on August 20, 2024

Hi Eddy,

I found what was wrong. Facebook and Twitter were not installed on my phone. I expected a no-native fallback in that case, but i guess this is why you add canShareVia.. methods.
Thanks for that plugin, good job.

from socialsharing-phonegap-plugin.

nh2 avatar nh2 commented on August 20, 2024

I deleted my existing virtual devices, created new ones, and no longer see this error. Thank you for looking at my files!

Worked so well for me.

from socialsharing-phonegap-plugin.

TheShy avatar TheShy commented on August 20, 2024

Hi@Eddy,
I've had a similar situation.More than(Android 4.2) of the models and more than (Android 4.4) of the following photos will lead to collapse.
Reason:
Failed to ensure directory: /storage/sdcard1/Android/data/com.jeemoo.conveniencestore/cache
thanks

from socialsharing-phonegap-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.