fix: refresh widgets after idle#978
Conversation
efea229 to
295079f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Pull request was converted to draft
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
19f5fc1 to
ddf4c64
Compare
ddf4c64 to
89bb9cd
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
Testing again after recent updates... |
7dc6e59 to
ee47435
Compare
@piotr-iohk Pls use latest commit, after squashing all prevs: note that your comment was right before the squashing push and I will add new dev mode setting to clear logs; so I can test this and other OS widgets PRs easier without having to clear logs. |
Issue filed: |
jvsena42
left a comment
There was a problem hiding this comment.
Tested on physical Mi Note 11
- Fresh app
- Set Block widgets OS and in-app
- Finish app by notificatoin
- disable wifi and block app
- On middle for 12 minutes
- unlock phone
- turn on wifi
- Both widgets updated
Screen_recording_20260605_105739.mp4
piotr-iohk
left a comment
There was a problem hiding this comment.
Tested again latest head (before squash) on Samsung S22 / Android 16, power savings off, 30+ min idle after stop-from-notification. Price/Blocks/weather updated without opening app. Headlines may remain unchanged within 30 min by design (60 min interval).
Fixes #975
Description
This PR:
AppWidgetRefreshSchedulerentry point.LightningNodeService.onDestroy.Preview
QA Notes
Manual Tests
Result: Real idle wait from 19:15 to 20:43 on June 2, 2026: Price changed from
$67.443to$67.314, Blocks changed from952,132to952,138, News changed headline, and Facts rotated locally. Weather stayed at$0.28, which is valid when the fee estimate itself has not changed.negative:Android quick settings → disable Wi-Fi/data → repeat the idle test: remote-backed widgets may stay stale while offline; Facts may still rotate from local cached facts only.negative:Android Settings → Apps → Bitkit → Force stop → return to launcher: Android 15 may disable widget updates/pending intents until the user launches or interacts with Bitkit again; this is expected platform behavior.Automated Checks
app/src/test/java/to/bitkit/appwidget/.app/src/test/java/to/bitkit/androidServices/LightningNodeServiceTest.kt.git diff --checkpassed locally../gradlew compileDevDebugKotlinpassed locally../gradlew testDevDebugUnitTestpassed locally../gradlew detektpassed locally.