GoodDAPP
GoodDAPP copied to clipboard
Push Notifications
infrastructure for notifications/backend + basic 2 notifications: payment received and request for payment received.
https://github.com/transistorsoft/react-native-background-fetch
- Currently the wallet subscribes to blockchain events and broadcasts them
- Userstorage subscribes to broadcasts from wallet
Todo:
- what happens when background task is started? is the web3 wallet connection working? does it start getting blockchain events?
- keep a new field under "feed". lastSeenDate UTC. which is updated every time user visits feed or after push notifications sent.
- background task should poll for the events (Transfer - to us, PaymentWithdraw - from us)
- need to estimate blocknumber to start polling from that matches lastSeenDate
- filter to events that happened after lastSeenDate
- update lastSeenDate
- send local notification "Payment of XG$ was accepted/received by/from NAME"
@LiavGut do we have a design for push notifications?
@nicastelo you might want to break this into smaller tasks, and make this an epic
@LiavGut do we have a design for push notifications?
@sirpy Not yet.