Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypted code showing on iOS #80

Open
Davegb opened this issue May 16, 2019 · 1 comment
Open

Encrypted code showing on iOS #80

Davegb opened this issue May 16, 2019 · 1 comment

Comments

@Davegb
Copy link

Davegb commented May 16, 2019

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 for and didn't work either.

I tested on iPhone 4S (iOS 9) and iPhone 6 (iOS 12).

Has someone made it work on iOS?

@torinnguyen
Copy link

This issue can be fixed in 2 different ways:

  1. Exclude index.html from encryption. Refer to another issue here. Tested working myself.

  2. 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.

CDVWebViewEngine hacking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants