-
Notifications
You must be signed in to change notification settings - Fork 391
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
White Screen with WKSuspendInBackground set to false #189
Comments
out of curiosity if you close the external window before sending the app to the background does the problem still occur? A work around maybe to close any open external viewers in the lifecycle event that is triggered when the app is sent to the background. You could always open them again in the lifecycle event when app is brought back to foreground. |
Yes that is exactly what I am doing in my app today but my point was not
about this exact scenario. Users are seeing the white screen even without
opening an external window and since this is so close to their issue
description this might give us a valuable clue on what's going on.
…On Tue, Oct 9, 2018, 9:31 PM Gaven Henry ***@***.***> wrote:
out of curiosity if you close the external window is the problem resolved?
A work around maybe to close any open external viewers in the lifecycle
event that is triggered when the app is sent to the background. You could
always open them again in the lifecycle event when app is brought back to
foreground.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#189 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFkarYz3bK7C51IgouN0dEZ8cvnZULeUks5ujU4GgaJpZM4XTjFr>
.
|
@write2sv out of interest are you using any code push plugins for updating that app? I think there are currently some known issues with some of the code push plugins under certain scenarios that will also result in a white screen and am curious if this is related. |
Well the sample template app code I have shared in this issue does not use
any code push plugins but our production app does. It uses Ionic. However
it is currently turned off. May I know the scenarios in which these code
push plugins may cause the White screen issue. Thanks for your input here.
…On Fri, Oct 12, 2018, 6:51 AM Gaven Henry ***@***.***> wrote:
@write2sv <https://github.com/write2sv> out of interest are you using any
code push plugins for updating that app? I think there are currently some
known issues with some of the code push plugins under certain scenarios
that will also result in a white screen and am curious if this is related.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#189 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFkareTvxIC9f4oOiZ5FrgomJNP6cP8Nks5ukHQfgaJpZM4XTjFr>
.
|
We see this all the time, how can we prevent the WkWebview from being suspended in the background? This doesn't happen with other apps... |
Any news here? I'm experiencing the same issue... |
Same here... works great on iOS 12.1 but broken on 12.2. |
Same here. Anyone? |
Don't know about you guys, but I can't afford my application to break for hundreds of users the day iOS 12.2 hits GA. I've abandoned Ionic/Cordova and am rewriting my entire app using Swift. |
I guess that's not an option for 99,9 % of the plugin users |
FYI this is because the plugin used a private API to facilitate background operation, which Apple finally disabled - so will probably not get fixed. The alternative is having a non-functional application. |
So do we abandon the wkWebView plugin? Isn’t the UIWebview deprecated in iOS 12? |
I can't see a path forward, at least for me: This plugin is broken - and any other method of running in the background using Ionic 3 is broken as well since the API isn't available anymore, so Ionic 3 simply doesn't work for me once 12.2 hits. I'm left with two options:
Conclusion: Both tasks seem equally as painful - but at least with native code I know for a fact everything will work, and continue working. |
I'm not using Ionic, I'm just using the ionic-webview plugin, is there a way for me to use the ionic 4 webview? |
does it work with plugin version 4.0.0 or is the white screen error occurring there, too? |
I don't want to give up on cordova just yet (also not using ionic) - so I second the question. |
So is there a fix for iOS 12.2 with the ionic webview to prevent the white screen? (because we can't use WKSuspendInBackground anymore) |
See this issue: #293 Looks like there will not be a fix. |
We released several fixes for this last week. Upgrade to 4.0 if you're able to drop the webserver (and iOS 10), or use the latest 2.x if you need to support iOS 10 still. Both have a fix for this issue. This issue got lost as it's a duplicate of several others. |
In short, the app is showing a white overlay when brought to foreground from background.
Our users are complaining about seeing the app in all white. The below steps are the only way I was able to recreate the issue. Please note that users observed this issue even without opening any external window from app as suggested in the below steps. These steps are to easily recreate the issue so that we can think of a fix.
Steps to recreate:
Exact recreation steps in a Video: (The phone you are seeing on the left in this video is a real device)
You can skip the video from 30 seconds to 3 minutes to save some of your valuable time :)
https://youtu.be/gryhObPDDfA
At the end of the Video observe how Chrome inspect can actually see the screen and all the html entities are in place!
Here is a sample git repository that is helpful: (This is ionic tabs starter + cordova documentViewer, fileTransfer plugins + WKSuspendInBackground set to false)
https://github.com/write2sv/whitescreen_issue_ionic
My Ionic Info:
Ionic:
ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.1 (cordova-lib@8.1.0)
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 7 otherplugins)
System:
Android SDK Tools : 26.1.1 (/Users/shaggy/Library/Android/sdk)
ios-deploy : 1.9.2
ios-sim : 5.0.13
NodeJS : v8.4.0 (/usr/local/bin/node)
npm : 3.10.8
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
I hope some one can help me figure out where the issue is.
The text was updated successfully, but these errors were encountered: