Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Ionic causes WkWebView to crash when using either --prod or --minifyjs #1377

Open
adamduren opened this issue Jan 31, 2018 · 6 comments
Open

Comments

@adamduren
Copy link

adamduren commented Jan 31, 2018

Short description of the problem:

Ionic causes WkWebView to crash and repeatedly reload when using the --prod or --minifyjs flags.

What behavior are you expecting?

For the WkWebView to not crash or if it must to only do so once and provide meaningful information to help debug.

Steps to reproduce:
I have not yet been able to isolate this to a reproducible case. I have attacked more information here that might provide clues as to whats going on.

Which @ionic/app-scripts version are you using?
3.1.8

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

This only happens in WkWebView. Works fine in UIWebView.

See linked issue in cordova-plugin-ionic-webview for more information.

@mateusduraes
Copy link

Hi @adamduren, I'm having the same issue.

Did you solve the issue?

@adamduren
Copy link
Author

Unfortunately for the affected project I just compiled with a subset of the flags that --prod enables.

@mateusduraes
Copy link

Do you remember which was the group of flags that you used?

@adamduren
Copy link
Author

I think it was something like npm run build --aot --minifycss

@adamduren adamduren reopened this Sep 12, 2019
@adamduren
Copy link
Author

Didn't mean to close

@mateusduraes
Copy link

@adamduren Thank you, my issue was related to other stuff.
In my case, the WkWebView was starting a loop reload.

After a lot of research, I found similar issues related to Iphone X and IOS 12.2

I removed some CSS animations of my code and now I do not have the problem anymore!

If someone safe this problem, be aware of the following items:

  • CSS Animations - It is good to have control and animate only the elements that are visible to the user
  • It is good to check also the -webkit-backdrop-filter: blur(), there are some reports that it was causing the bug.

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

No branches or pull requests

2 participants