You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "skorsi2 (via GitHub)" <gi...@apache.org> on 2023/11/07 18:59:17 UTC

[I] Failing to broadcast 'pause' event when app enters background [cordova-ios]

skorsi2 opened a new issue, #1384:
URL: https://github.com/apache/cordova-ios/issues/1384

   # Bug Report
   ## Problem
   We've noticed on at least one reported occasion, Cordova is failing to broadcast the 'pause' event as the application enters the background.
   ### What is expected to happen?
   We would expect this 'pause' event to trigger. This allows the application to close its open websocket(s). 
   
   
   ### What does actually happen?
   No 'pause' event is broadcast to the web layer. Likewise, we keep the websocket(s) open. We will however see the 'resume' even when the application is brought into the foreground. This spins up a new websocket(s). The outcome is inconsistent behavior in the application as it concerns communication to the domain layer; this can timeout or be non-functional when in this state. 
   
   
   ## Information
   This is for an iOS application. It's unknown when this behavior was first introduced, but it was only recently identified on our end. It was reported using an iPad Pro 2nd Gen (12.9"). The iOS version was not reported.
   
   
   
   ### Command or Code
   n/a
   
   
   
   ### Environment, Platform, Device
   iOS, iPad Pro 2nd Gen (12.9")
   
   
   
   ### Version information
   rel/6.0.0
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [x] 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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org