tkyaji / cordova-plugin-crypt-file

This plugin to encrypt the source files.
Apache License 2.0
178 stars 116 forks source link

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

Open AKarthikeyan1982 opened 6 years ago

AKarthikeyan1982 commented 6 years ago

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

Medtrack commented 6 years ago

Hello, I can confirm this issue.

renandecarlo commented 6 years ago

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

AKarthikeyan1982 commented 6 years ago

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." notifications@github.com 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 .

ealch commented 6 years ago

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

SleimanB commented 5 years ago

Any news about this issue?

SleimanB commented 5 years ago

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

AKarthikeyan1982 commented 5 years ago

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, notifications@github.com 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 .

SleimanB commented 5 years ago

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

ZubeeDoo commented 5 years ago

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

ZubeeDoo commented 5 years ago

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.
A110SHT commented 5 years ago

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 commented 5 years ago

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

devitito commented 5 years ago

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