cordova-plugin-crypt-file icon indicating copy to clipboard operation
cordova-plugin-crypt-file copied to clipboard

Unable to open asset URL: file:///android_asset/www/+++/index.html

Open AKarthikeyan1982 opened this issue 8 years ago • 13 comments

Hi Team, I have tried to use the cordova-plugin-crypt-file for my hybrid app and its showing the 'E/AndroidProtocolHandler(2434): Unable to open asset URL: file:///android_asset/www/+++/index.html' error in logCat. Please help. capture

AKarthikeyan1982 avatar Aug 06 '17 14:08 AKarthikeyan1982

Hello, I can confirm this issue.

Medtrack avatar Nov 27 '17 16:11 Medtrack

But does the plugin work? It is meant to throw this error...

renandecarlo avatar Nov 27 '17 17:11 renandecarlo

Yes, the plugin is working with the reported warning... Is that any way to fix the issue?

On 27 Nov 2017 11:05 pm, "Renan D." [email protected] wrote:

But does the plugin work? It is meant to throw this error...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tkyaji/cordova-plugin-crypt-file/issues/55#issuecomment-347260796, or mute the thread https://github.com/notifications/unsubscribe-auth/AHkDOcf3XceCT5_2AzL6djOpsCbWhjB_ks5s6vL4gaJpZM4Ouv2V .

AKarthikeyan1982 avatar Nov 28 '17 05:11 AKarthikeyan1982

assets-crypt-error I can confirm it too... Do you have any news?

ealch avatar Feb 05 '18 11:02 ealch

Any news about this issue?

SleimanB avatar Oct 18 '18 14:10 SleimanB

I don't know if you are using Ionic 3 Framework but for the issue was cordova-plugin-ionic-webview so when I removed it my problem was solved @AKarthikeyan1982 @Medtrack @ealch

SleimanB avatar Oct 19 '18 08:10 SleimanB

Hi, Thanks you for the suggestion, am not using ionic, am using onsenui and it's still having the issue.

Regards, Karthikeyan A.

On Fri, 19 Oct 2018 2:03 pm Sleiman Al-Bacha, [email protected] wrote:

I don't know if you are using Ionic 3 Framework but for the issue was cordova-plugin-ionic-webview so when I removed it my problem was solved @AKarthikeyan1982 https://github.com/AKarthikeyan1982 @Medtrack https://github.com/Medtrack @ealch https://github.com/ealch

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tkyaji/cordova-plugin-crypt-file/issues/55#issuecomment-431287756, or mute the thread https://github.com/notifications/unsubscribe-auth/AHkDOauUr33wgg7a5k4_FrIHkBoWxZR7ks5umY5UgaJpZM4Ouv2V .

AKarthikeyan1982 avatar Oct 19 '18 14:10 AKarthikeyan1982

I Suggest removing your plugins one by one and see if the problem will be resolved. because I think the problem is from one of your plugins @AKarthikeyan1982

SleimanB avatar Oct 20 '18 09:10 SleimanB

My app consists of cordova-plugin-whitelist and cordova-plugin-crypt-file only. Still the issue...

ZubeeDoo avatar Nov 01 '18 18:11 ZubeeDoo

Solved. OK , Exactly not sure on what i did but now it works (I am using angular and angular material with cordova). Walk through :

  1. unzip your cordova built (just rename from .apk to .zip and extract like always) and find your index.html file path it will be inside www within www(created by the plugin). just make sure where your files are. Then open plugins/cordova-plugin-crypt-file/hooks/after_prepare.js and change line 65 from child.attrib.src = '/+++/' + child.attrib.src; to child.attrib.src = '/www/' + child.attrib.src; --- it worked partially for me but not the correct solution 2.simple reinstall the plugin. -- if its still not working then Number 3. create a new cordova project (just a blank one without any additional plugins ) and then install the plugin. I hope this helps someone. Sorry, if it doesn't.

ZubeeDoo avatar Nov 02 '18 15:11 ZubeeDoo

Hello everyone after resolve the file:///android_asset/www/+++/index.html

Although it successfully encrypts all the js and HTML files, after installing the apk it shows whole encrypted string. So the device doesn't decrypt. What could be the reason? I see the random string in an app. It will don't decrypt as expected. how to resolve this?

A110SHT avatar Nov 13 '18 08:11 A110SHT

this plugin is not working on ionic project how to make work in ionic.

A110SHT avatar Nov 13 '18 09:11 A110SHT

+1 Same problem on android with cordova-plugin-ionic-webview

devitito avatar Nov 20 '18 14:11 devitito