最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - iOS iPhone 11 flashing black and white while browsler is constantly reloading: RBS Background assertion ConnectionT

programmeradmin1浏览0评论

I get a black & white flashing browser, which is constantly reloading after this error:

[ProcessSuspension] 0x1063b4740 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID is invalid
[Process] 0x104028a18 - [pageProxyID=11, webPageID=12, PID=3734] WebPageProxy::processDidTerminate: (pid 3734), reason 3
[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}>

The issue occurs only with iPhone 11 PRO and iPhone 11 Mini (real devices) and a cordova app on iOS 14.3, 14.4 and 14.5. On emulator it works perfectly and on other real devices as well.

In my case the screen is flashing black and white if I open a dc-Tableview.js table (by adding and removing "diplay:none").

Related issues:

  • WKWebView is trying to run on background, although it's closed and should be disposed
  • ;page=1#674912022

System:

  • Cordova 10.0.0
  • Cordova-ios 6.2.0
  • iPhone 11 PRO / iPhone 11 Mini (it is woring on several other devices f.e. iPhone SE, also working on iPhone 11 PRO emulator)
  • iOS 14.5

Any thoughts how to fix this?

I get a black & white flashing browser, which is constantly reloading after this error:

[ProcessSuspension] 0x1063b4740 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID is invalid
[Process] 0x104028a18 - [pageProxyID=11, webPageID=12, PID=3734] WebPageProxy::processDidTerminate: (pid 3734), reason 3
[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}>

The issue occurs only with iPhone 11 PRO and iPhone 11 Mini (real devices) and a cordova app on iOS 14.3, 14.4 and 14.5. On emulator it works perfectly and on other real devices as well.

In my case the screen is flashing black and white if I open a dc-Tableview.js table (by adding and removing "diplay:none").

Related issues:

  • WKWebView is trying to run on background, although it's closed and should be disposed
  • https://github.com/apache/cordova-ios/issues/1103
  • https://forum.ionicframework.com/t/ios-background-issue/206463
  • https://developer.apple.com/forums/thread/677916?login=true&page=1#674912022
  • https://github.com/apache/cordova-plugin-wkwebview-engine/issues/55

System:

  • Cordova 10.0.0
  • Cordova-ios 6.2.0
  • iPhone 11 PRO / iPhone 11 Mini (it is woring on several other devices f.e. iPhone SE, also working on iPhone 11 PRO emulator)
  • iOS 14.5

Any thoughts how to fix this?

Share Improve this question edited Aug 28, 2021 at 13:19 Marcel Schürmann asked May 17, 2021 at 14:09 Marcel SchürmannMarcel Schürmann 3951 gold badge2 silver badges13 bronze badges 3
  • 1 I got the same issue, have you solved it? – Nguyen Tran Commented Jul 19, 2021 at 14:17
  • Hi @NguyenTran: Unfortunately not but I think it has to do with the new display technology "OLED Super Retina XDR" - see my comment below in the other answer. It only occurs on iPhone 11 PRO and later versions with this display technology, not iPhone 11. – Marcel Schürmann Commented Jul 19, 2021 at 18:24
  • Hi, i have the same issue, but only on iOS 14, in 12 and 13 just work perfect...can any one solve this? please let me know. :( – xhinoda Commented Aug 17, 2021 at 16:21
Add a comment  | 

5 Answers 5

Reset to default 2

It seems to occure when the screen is scrolled:

  • manually
  • by using functions like: scrollintoview()
  • with multiple full-size modals used with overflow-y: auto css in modal div container

Edit: Finally, I could solve my issue by hiding all inactive modals in the background by using:

  • display: none

Removing the modals, removes the error.

Resizing the modals, removes the error (f.e. height to 30%).

When I delete all my scrollintoview() occurances I only get the flashing bug when scrolling manually.

Hope this helps. Still I don't know how to solve that entirely.

I opened a ticket at apple support: https://feedbackassistant.apple.com/feedback/9363100

I had similar problem:

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

I enabled Background modes -> Background processing under capabilities and since then, I don't see this issue. Hope this works for you as well!

Update: This does not fix my issue, you can try if it works for you.

Faced similar issue, remove autofocus=true from the HTML page fixed for me,

Inspired by omnir95's comment on https://developer.apple.com/forums/thread/121822?page=3

Solved for me in IOS 15.3 , just update your real device as the current xcode "13.2.1" emulators with the version 15.2

I had the same issue. I used logScrolling() and ion-fab (overflow element) on a page where I displayed many rows in a list contains images and text. I logged the scrolling to display/hide the ion-fab. If I deleted the ion-fab from html the app run without any problem. The solution was that I used ion-virtual-scroll (https://ionicframework.com/docs/api/virtual-scroll) instead of use simple ngFor.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论