cordova-plugin-crypt-file: CORDOVA 7.0.0 net::ERR_FILE_NOT_FOUND (file:///android_asset/www/+++/index.html)

Hello First i want thank you for this awesom plugin is very helpfull i use in all my applications. i was using ionic 3 with cordova ^6 , the plugin was working fine ,but after upgrade platform to 7.0.0 the plugin is stop working and show in background the “index.html” crypted text and also alert contain this error : net::ERR_FILE_NOT_FOUND (file:///android_asset/www/+++/index.html) after that application is close

what i try and not worked :

  1. remove the plugin and add with latest version
  2. remove platform and clean project and add the platform .
  3. debug using android studio :
  • the file was crypted successfully
  • the project not openning DecryptResource at all. so the file index.html is not encrypted.

my system info is : `Ionic:

ionic (Ionic CLI) : 4.1.1 (C:\Users\yassine\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.0.0 Cordova Platforms : android 7.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.5, (and 14 other plugins)

System:

Android SDK Tools : 26.1.1 (C:\Users\yassine\AppData\Local\Android\Sdk) NodeJS : v8.2.1 (C:\Program Files\nodejs\node.exe) npm : 5.3.0 OS : Windows 10 `

I hope this is enought to reprodius the probleme and sorry because we don’t have project in global git. so we can’t share. if you need any information or new test just tell me and than you again for your energy and your time

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 1
  • Comments: 23

Most upvoted comments

@PeterHdd

I have removed all the plugins and re install them again. It is working fine now. I might have messed with the webview while trying to fixed it or something. Thanks a bunch. I really appreciate your effort and time. Cheers man!

I’m sorry. I wrote wrong answer. I also confirmed. https://imgur.com/a/wdxS221

Workaround is to remove “cordova-plugin-ionic-webview” plugin.

same issues!Anyone who solves the problem?

Use this plugin instead:

https://github.com/PeterHdd/cordova-plugin-crypto-file

I have fixed this finally. I have created another plugin that is made to work with “cordova-plugin-ionic-webview” if you are using it in your project.

The plugin is here:

https://github.com/PeterHdd/cordova-plugin-crypto-file

To use it, try the following:

ionic cordova plugin add cordova-plugin-crypto-file

Also please read the important section and the FAQ section before using it.

Please try @otak1222 (and everyone else in this thread) and give me your feedback.

same issue here 😕

trying to solve this, if you add cordova-plugin-crypt-file then when you inspect the ionic app, it will be here:

file:///android_asset/www/+++/index.html

but if you remove this plugin and add only the ionic webview plugin 2+ then the app will be in the server http://localhost:8080/