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

Reconnect websockets after app switch #548

Closed
esune opened this issue Jun 13, 2024 · 1 comment
Closed

Reconnect websockets after app switch #548

esune opened this issue Jun 13, 2024 · 1 comment
Assignees

Comments

@esune
Copy link
Member

esune commented Jun 13, 2024

When going through the same-device access experience, the browser is sent to background for the time necessary to the user to interact with BC Wallet. This seems to cause websockets (and potentially polling) to be terminated.

Using the focus browser window event we may be able to reconnect the client so that the UI can refresh - see https://developer.mozilla.org/en-US/docs/Web/API/Window/focus_event

@loneil
Copy link
Contributor

loneil commented Jun 27, 2024

Have tested this out in Dev environment after these changes on Clecio's iPhone while watching browser logs. Was working for shared and declined proofs successfully on BCNGN and cell network. So tentatively declaring this one cleared.

@loneil loneil closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants