diachedelic / capacitor-blob-writer

Capacitor plugin to write binary data to the filesystem
MIT License
132 stars 17 forks source link

Bug Report: Run on Android but receiving "Not implement for web" #18

Closed thanhhoa214 closed 4 years ago

thanhhoa214 commented 4 years ago

After hours, running & debugging on my devices, I found out it works well on iOS ✅ (iPad) but on Android ❌ (JOI 4G Lite) raises an error "Not implement for web" (debug on Chrome inspector).

For a clearer scenario, I'm running a feature with the following step:

Download encrypted file >>>> Read, decrypt and re-write a temp file

Screen Shot 2020-07-31 at 11 56 24

✅ Reading passed ✅ Decrypting passed ❌ Re-writing error

Here's my code:

Don't mind about path, I checked it. Screen Shot 2020-07-31 at 12 10 50

Many thanks and please help!

diachedelic commented 4 years ago

Strange! Have you properly configured BlobWriter in your MainActivity.java? Can you post the output of await Plugins.Device.getInfo() from your Android?

thanhhoa214 commented 4 years ago

It's really strange.

Screen Shot 2020-08-01 at 07 44 32
diachedelic commented 4 years ago

In your device logs (in Android Studio) do you see any reference to BlobWriter? It should log if the plugin loads successfully.

On 1 Aug 2020, at 10:48 am, Hòa Nguyễn notifications@github.com wrote:

It's really strange. https://user-images.githubusercontent.com/32329202/89090159-45238900-d3cb-11ea-8252-2b9ecaa19727.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diachedelic/capacitor-blob-writer/issues/18#issuecomment-667440776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLZQFQI3G3W3RM5PFECSLR6NQ5LANCNFSM4PPOCHMQ.

thanhhoa214 commented 4 years ago

I don't know why actually. Now it worked without any fix. I closed this issue.

👍👍👍 Thanks for your help.