GoodDAPP icon indicating copy to clipboard operation
GoodDAPP copied to clipboard

Push Notifications

Open nicastelo opened this issue 5 years ago • 3 comments

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"

nicastelo avatar Feb 26 '20 14:02 nicastelo

@LiavGut do we have a design for push notifications?

sirpy avatar Feb 28 '20 07:02 sirpy

@nicastelo you might want to break this into smaller tasks, and make this an epic

sirpy avatar Feb 28 '20 07:02 sirpy

@LiavGut do we have a design for push notifications?

@sirpy Not yet.

LiavGut avatar Feb 28 '20 10:02 LiavGut