Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Don't blacklist an app version because the app started in background #9

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ios/WebAppLocalServer.swift
Expand Up @@ -106,7 +106,8 @@ public class WebAppLocalServer: METPlugin, AssetBundleManagerDelegate {
startupTimeoutInterval = NSTimeInterval(startupTimeoutMilliseconds / 1000)
}

if !isTesting {
if !isTesting &&
UIApplication.sharedApplication().applicationState == UIApplicationState.Active {
startupTimer = METTimer(queue: dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { [weak self] in
NSLog("App startup timed out, reverting to last known good version")
self?.revertToLastKnownGoodVersion()
Expand Down