Open yascasa opened 5 years ago
Same here
Any one find solution ? i have same issue.
Try rewriting line number 34 and 58.
Fix cyphering process crashing when some directory name matched the include pattern. https://github.com/tkyaji/cordova-plugin-crypt-file/commit/7b6d25380088f265fd3f416d12034bdc32df865d
old 34
return isCryptFile(file.replace(wwwDir, ''));
new 34
return fs.statSync(file).isFile() && isCryptFile(file.replace(wwwDir, ''));
old 58
var pluginDir = path.join(platformPath, 'src');
new 58
var pluginDir = path.join(platformPath, 'app/src/main/java');
Still not working... As far as I know the issue is related to the file server used by ionic-webview, the plugin is not compatible with a local server to serve the files...
Same issue here with the latest ionic webview plugin.
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/
I'm sorry. I wrote wrong answer. I also confirmed. https://imgur.com/a/wdxS221
Workaround is to remove "cordova-plugin-ionic-webview" plugin.
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.
@PeterHdd does your solution accomodate all android versions? I am having issues running on lollipop
@narickson What problem are you getting?
Yes, it should work, make sure to do the "important section" though https://github.com/PeterHdd/cordova-plugin-crypto-file#important
Also, which version of ionic webview are you using?
@PeterHdd I am using version 2.2.0 should I update it also to version 4?
@narickson
Can you please tell me the steps that you are taking? Did you change the ionicwebviewengine.java file as specified? Did you try it on different devices, and which versions did you use?
@PeterHdd
I first installed the plugin I made the changes on ionicwebviewEngine java file It gave me an error cannot find module q I ran npm install q which apparently fixed this issue and build successfully I tested it on android version 9 and its working perfectly. I ran the same app on lollipop and it just flushes and crashes with not error message
@narickson
Ok, check this https://github.com/ionic-team/ionic/issues/17503
I'm not sure what the problem is, but as a test, do the following:
Test1:
Remove cordova-plugin-crypto-file Keep cordova-plugin-ionic-webview 2.2.0 and test the app
Test 2: Remove cordova-plugin-crypto-file Remove cordova-plugin-ionic-webview 2.2.0 and test the app
Test 3: Add cordova-plugin-crypto-file Remove cordova-plugin-ionic-webview 2.2.0 and test the app
@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!
Not working
@PeterHdd I have implemented the same process as per suggestions mentioned in above. My debug app is working fine but when i am trying to run signed app it is getting crashed and closing immediately.
@PeterHdd
I add the plugin then made the changes on ionicwebviewEngine java file after that build successfully.
application run fine.
but at the time image capturing it show the broken image.
like below image
my project info
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
local packages:
@ionic/app-scripts : 3.2.1
Cordova Platforms : android 7.1.4
Ionic Framework : ionic-angular 3.9.3
System:
Android SDK Tools : 26.1.1
Node : v8.11.1
npm : 5.6.0
OS : Windows 7
Environment Variables:
ANDROID_HOME : D:\android-sdk-win
Misc:
backend : pro
help please....
same issues!Anyone who solves the problem?
same issues!Anyone who solves the problem?
Use this plugin instead:
Has anyone tried to remove '/+++/' from this plugin and it still works?
Has anyone tried to remove '/+++/' from this plugin and it still works?
Can you try again by replacing the <content src="index.html" />
field in the config.xml file with <content src="../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 closewhat i try and not worked :
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