[Bug]: Refresh Failed toast often seen when reopening app from minimised
Describe the bug
When I reopen the app from minimised state I often see 'Refresh Failed' 'An error occurred and couldn't refresh the wallet. Please try again.' toast message. A manual refresh will work and there appears to be no connection issue. We should only show this toast when there is a legitimate problem.
Reproduce
- Close Bitkit to minimised state
- Wait a short while (2-5 minutes)
- Reopen Bitkit from minimsed state
- Observe 'Refresh Failed' error toast
- Perform manual refresh and confirm there is no problem with refreshing
Screenshots / Recording
https://github.com/synonymdev/bitkit/assets/74595920/1ddaad0b-cd00-4a93-a4ba-6ce4a2a319e9
Operating system
Android 13 TKQ1.221114.001
Bitkit version
8908053a3198a167c16a3062fb68282160a63112
Log output
No response
This appears to be related to when new blocks are minded whilst app is minimised. Reproducible on iOS and android when mining blocks in staging env.
@pwltr we still have the same issue on latest internal release (v127). It's now happening very often.
Still occurring in v130
Verified in 2e3cf89d424d3f05fe5c2727ab02b3c9f318454a Not seen it at all. LGTM.
Sadly this is not completely fixed yet. It's way less likely too appear now but still does sometimes. Reopening but can be considered lower prio now imo.
Let's see if it's happening again.
I have seen it once recently.
This is currently reproducible for me. It will appear roughly 10 seconds after running bitkit (cold start). I am in a different region atm and I'm suspicious that could be related.
https://github.com/user-attachments/assets/3820d6ae-35ce-4336-a025-ca1e28268b21
@pwltr Failed toast is happening really frequently now.