How to handle new Push Notification when the app is open
- When a push notification arrives and the app is not active, the notification will be shown in current implementation.
- However, if the app is running and it receives a new push notification, the notification will not be shown at all in the current implementation. We should reconsider how to handle the notification in this case
- Some thought:
- if the new notification is about a new transaction related to the active wallet, the utxos update will soon reflect the new tx. So nothing needs to be done in this case
- if the new notification is about a new transaction related to the a wallet not currently active, should we show the message?
- if the new notification is a broadcast message, we should show the message, but how?
Edited by Hung Sam