75341704 opened a new issue #1103: URL: https://github.com/apache/cordova-ios/issues/1103
# Bug Report ## Problem ### What is expected to happen? When app start, it works without reloading the view ### What does actually happen? The webview is reloaded actually just like refreshing the browser. ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> 2021-04-29 12:31:13.086440+0800 myApp[2320:513802] Apache Cordova native platform version 6.1.0 is starting. 2021-04-29 12:31:13.086490+0800 myApp[2320:513802] Multi-tasking -> Device: YES, App: YES 2021-04-29 12:31:13.126397+0800 myApp[2320:513802] [unspecified] An empty string is not a valid group container identifier. 2021-04-29 12:31:13.126426+0800 myApp[2320:513802] [unspecified] container_create_or_lookup_app_group_path_by_app_group_identifier: client sent invalid parameters 2021-04-29 12:31:13.330186+0800 myApp[2320:513802] The preference key "AllowNewWindows" is not defined and will default to "FALSE" 2021-04-29 12:31:13.331092+0800 myApp[2320:513802] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE" 2021-04-29 12:31:13.332963+0800 myApp[2320:513802] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE" 2021-04-29 12:31:13.332990+0800 myApp[2320:513802] The preference key "Allow3DTouchLinkPreview" is not defined and will default to "TRUE" 2021-04-29 12:31:13.333005+0800 myApp[2320:513802] CDVWebViewEngine will reload WKWebView if required on resume 2021-04-29 12:31:13.333028+0800 myApp[2320:513802] Using WKWebView 2021-04-29 12:31:13.333185+0800 myApp[2320:513802] [CDVTimer][console] 0.020027ms 2021-04-29 12:31:13.333235+0800 myApp[2320:513802] [CDVTimer][handleopenurl] 0.023007ms 2021-04-29 12:31:13.333949+0800 myApp[2320:513802] [CDVTimer][intentandnavigationfilter] 0.695944ms 2021-04-29 12:31:13.334006+0800 myApp[2320:513802] [CDVTimer][gesturehandler] 0.028014ms 2021-04-29 12:31:13.335699+0800 myApp[2320:513802] Currently running release version 2020.06.29-23.05.45 2021-04-29 12:31:13.364688+0800 myApp[2320:513802] [CDVTimer][hotcodepush] 30.660033ms 2021-04-29 12:31:13.364794+0800 myApp[2320:513802] [CDVTimer][inappbrowser] 0.069976ms 2021-04-29 12:31:13.364993+0800 myApp[2320:513802] [CDVTimer][cdvwkwebviewfilexhr] 0.177026ms 2021-04-29 12:31:13.365012+0800 myApp[2320:513802] [CDVTimer][TotalPluginStartup] 31.868935ms 2021-04-29 12:31:13.429313+0800 myApp[2320:513802] WF: === Starting WebFilter logging for process myApp 2021-04-29 12:31:13.429354+0800 myApp[2320:513802] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2021-04-29 12:31:13.429388+0800 myApp[2320:513802] WF: _WebFilterIsActive returning: NO 2021-04-29 12:31:13.575002+0800 myApp[2320:513937] [tcp] tcp_output [C1.2.1:3] flags=[R.] seq=3168068465, ack=3780910421, win=4032 state=CLOSED rcv_nxt=3780910421, snd_una=3168068465 2021-04-29 12:31:13.635831+0800 myApp[2320:513802] IAB.close() called but it was already closed. 2021-04-29 12:31:14.294749+0800 myApp[2320:513922] Nothing to update 2021-04-29 12:31:14.619787+0800 myApp[2320:513802] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE" ///////////// The webview is reloaded and I got the reoprt hereunder////////////////// 2021-04-29 12:31:26.027519+0800 myApp[2320:513802] [ProcessSuspension] 0x104cde140 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID is invalid 2021-04-29 12:31:26.027601+0800 myApp[2320:513802] [Process] 0x12884f018 - [pageProxyID=11, webPageID=12, PID=2323] WebPageProxy::processDidTerminate: (pid 2323), reason 3 2021-04-29 12:31:26.034190+0800 myApp[2320:513802] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}> 2021-04-29 12:31:26.034235+0800 myApp[2320:513802] [ProcessSuspension] 0x104cde180 - ProcessAssertion: Failed to acquire RBS Background assertion 'WebProcess Background Assertion' for process with PID 2323, error: Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing} 2021-04-29 12:31:26.040013+0800 myApp[2320:513802] [Loading] 0x12884f018 - [pageProxyID=11, webPageID=12, PID=2323] WebPageProxy::dispatchProcessDidTerminate: reason = 3 2021-04-29 12:31:26.167514+0800 myApp[2320:513802] IAB.close() called but it was already closed. 2021-04-29 12:31:26.803244+0800 myApp[2320:513916] Nothing to update 2021-04-29 12:31:27.043435+0800 myApp[2320:513802] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE" ### Command or Code <!-- What command or code is needed to reproduce the problem? --> ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> cordova-lib@9.0.1 with: cordova-common@3.2.1 cordova-create@2.0.0 cordova-fetch@2.0.1 cordova-serve@3.0.0 Environment: OS: darwin Node: v10.16.3 npm: 6.14.9 Plugins: com.lampa.startapp cordova-hot-code-push-plugin-renew cordova-plugin-app-version cordova-plugin-appavailability cordova-plugin-camera cordova-plugin-device cordova-plugin-geolocation cordova-plugin-imagepicker cordova-plugin-inappbrowser cordova-plugin-qr-barcode-scanner cordova-plugin-screen-orientation cordova-plugin-splashscreen cordova-plugin-whitelist cordova-plugin-wkwebview-file-xhr eeschiavo-cordova-plugin-clipboard iOS platform: Xcode 12.5 Build version 12E262 PS: related Post https://stackoverflow.com/questions/65162287/wkwebview-is-trying-to-run-on-background-although-its-closed-and-should-be-dis ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [ ] I searched for existing GitHub issues - [ ] I updated all Cordova tooling to most recent version - [ ] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org