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

[IOS][1.3+] WKWebView terminated [White Screen of Death] - kills Geofence events #7590

Closed
Wade-BuildOtto opened this issue Aug 5, 2016 · 12 comments

Comments

@Wade-BuildOtto
Copy link

When WkWebview is terminated because the device is low on resources the app is no longer running and components like Geofence events are killed along with it.

Reference: [IOS] [1.3] White Screen Of Death ... #7018
pmwisdom commented on May 12 -
"apple has basically said its a bug in the WebView. Here's an issue along the same lines on the plugin page:" - Telerik#41

I have added the Fix that recovers the app on open, but when the app is killed the geofences that were added, no longer trigger the transition event which allows me to call a method to track Exits and Enters from the user's device. This was working perfectly on 1.2.1 I had no issues for months.

I am using:

@Wade-BuildOtto
Copy link
Author

I think some think that this issue is resolved with this fix but its not the app still dies limiting anything from being run after its closed.

There must be a lot of apps effected by this issue.

@anymos
Copy link

anymos commented Sep 23, 2016

+1

Very Annoying bug ...

Meteor 1.3 was supposed to fix the white screen of death by having a better HCP process.

Finally, despite the effort put in the HCP we still have a white of death.

My customers do not care that the root cause is different, from their point of view this issue is still alive after more than one year ...

@anymos
Copy link

anymos commented Sep 25, 2016

I am actually wondering, given the number of bug that wkwebview (https://issues.apache.org/jira/browse/CB-11885?jql=project%20%3D%20CB%20AND%20labels%20%3D%20wkwebview-known-issues)

Would it be possible to desactivate it and be back tothe old way ? even if itmeans no more HCP ?

Finally, the stability of an app is what most of the users care ...

@NawazKhanMd
Copy link

do we need a virtual host to run my meteor app on mobile?

cuz am running meteor run android-device -p MyIp:3000 --mobile-server virtualHostIpToWhichMobileIsConnected:3000

this gives me a blank screen

am i doing it wrong pls Reply :)

@AshHimself
Copy link

@Wade-BuildOtto - did you have find a resolution for this? I am running gps tracking in the background and my app looks to be crashing randomly and for the god of me can't resolve the issue.

@Wade-BuildOtto
Copy link
Author

Wade-BuildOtto commented Mar 13, 2017 via email

@macrozone
Copy link
Contributor

We also face this problem on two apps on IOS. We are using a geotracker plugin: https://github.com/transistorsoft/cordova-background-geolocation-lt
but no geofence, only tracking.

I don't know how i should approach this problem, its really hard to reproduce and I already spent days to find out what's going on.

I also don't know the root case. I heard that ios might kill the app, so my question is why ios is killing my app in the first place. And why this leads to a state where the app can't recover.

@AshHimself
Copy link

@macrozone - are you using iron-router and the accounts package? I found that my app was crashing on resume (white screen) and getting a route not found for a token page that does not exist. I have yet to invest time in resolving this nor do I know if this is the root cause. Happy to collaborate together to resolve this as this is a major show stopper for me.

@macrozone
Copy link
Contributor

macrozone commented May 22, 2017

@AshHimself: thank you for your input, but that's not the issue (i am using flow router), i think you should see some logs on the ios inspector (you can use safari to see the console.log from the webview)

It does not happen on every resume on my apps, it happens if the apps has been in the background for some time.

I also like to collaborate to resolve this huge issue, but i think we need help from mdg o this and someone with a good knowledge about the cordova integration.

there are so many layers where things can go wrong, it seems to be a bug with the local webserver on the cordova apps (Which adds a opaque layer of more complexity, which mdg should have had avoided in my opinion).

@macrozone
Copy link
Contributor

@Wade-BuildOtto can you try to apply meteor/cordova-plugin-meteor-webapp#30 and check if this fixes your issues?

@Wade-BuildOtto
Copy link
Author

I am calling this solved with meteor/cordova-plugin-meteor-webapp#30

cordova-plugin-meteor-webapp@https://github.com/panter/cordova-plugin-meteor-webapp.git#7bb095ce393d17f662cc6bb596ce91acf743d17a

This has recovered that app every time, no issues same day, 1 day, and 2 days of termination the app opened every time,

@abernix
Copy link
Contributor

abernix commented Jun 13, 2017

Fantastic news, @Wade-BuildOtto! (And thanks, @macrozone!) I'll pickup conversation in the issue you linked to to hopefully move that along to a release.

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

6 participants