cordova-plugin-crypt-file
cordova-plugin-crypt-file copied to clipboard
Encrypted code showing on iOS
My app is working on Android without issues. It doesn't have cordova-plugin-ionic-webview, I removed it to be able to use this plugin, I guess on iOS it should be using UIWebView now. However, it's still showing the encrypted code instead of the actual app when running on iPhone. I also changed
I tested on iPhone 4S (iOS 9) and iPhone 6 (iOS 12).
Has someone made it work on iOS?
This issue can be fixed in 2 different ways:
-
Exclude index.html from encryption. Refer to another issue here. Tested working myself.
-
There's another hack-ish solution by preventing CDVWebViewEngine.m from reloading when coming back from background. Refer to my screenshot below for code snippet. I did this in a shell script in my CI/CD pipeline because this can't really be done with normal Cordova hooks.
