mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Use node model state to update the android notification #331
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!331
Loading…
Reference in a new issue
No description provided.
Delete branch "jni-notifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The AndroidNotifier class connects to the NodeModel's state signals and uses JNI to send callbacks to the Android service managing the foreground notification.
from 6e0d079 to 1ef10e1
https://github.com/BitcoinDesign/Bitcoin-Core-App/issues/53
from 1ef10e1 to 90d250d
Needs rebase.
Concept ACK, I've been running and testing this for a few days. The only issue I've noticed is that the "Paused" state won't be represented in the Notification if we were syncing before pressing paused. If we were connecting or any other state, it'll show. But not if we were syncing.
https://github.com/BitcoinDesign/Bitcoin-Core-App/issues/53#issuecomment-1570033328
Update from eb53a46 to acd2d3e:
update from acd2d3e to
b641df4:Approach ACK
I've been learning more about what we really need to do here in order to interact with the Android and the JVM, and this code is looking good here.
The androidnotifier.cpp file contains the importance pieces of magic. We're gaining access to the JVM and storing it. Then we're setting up the wiring between nodeModel updates to calls into our BitcoinQt Service to update the notification text.
@johnny9 are you able to reproduce this: https://github.com/bitcoin-core/gui-qml/pull/331/files#r1211573422
What state does it show? I'm having a hard time reproducing
Well now I also can't reproduce, may have just lagged in showing the update for whatever reason android decided.
ACK
b641df470c