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

Failing to broadcast 'pause' event when app enters background #1384

Open
2 tasks done
skorsi2 opened this issue Nov 7, 2023 · 0 comments
Open
2 tasks done

Failing to broadcast 'pause' event when app enters background #1384

skorsi2 opened this issue Nov 7, 2023 · 0 comments

Comments

@skorsi2
Copy link

skorsi2 commented Nov 7, 2023

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

  • I searched for existing GitHub issues
  • I included all the necessary information above
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

1 participant