cordova-plugin-crypt-file
cordova-plugin-crypt-file copied to clipboard
Unable to open asset URL: file:///android_asset/www/+++/index.html
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.
Hello, I can confirm this issue.
But does the plugin work? It is meant to throw this error...
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 .
I can confirm it too... Do you have any news?
Any news about this issue?
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
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 .
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
My app consists of cordova-plugin-whitelist and cordova-plugin-crypt-file only. Still the issue...
Solved. OK , Exactly not sure on what i did but now it works (I am using angular and angular material with cordova). Walk through :
- 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.
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?
this plugin is not working on ionic project how to make work in ionic.
+1 Same problem on android with cordova-plugin-ionic-webview