Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications: Ongoing trades #126

Closed
rodvar opened this issue Dec 17, 2024 · 6 comments
Closed

Notifications: Ongoing trades #126

rodvar opened this issue Dec 17, 2024 · 6 comments
Assignees
Labels
In Progress Trading issue is related to the core functionality of trading

Comments

@rodvar
Copy link
Collaborator

rodvar commented Dec 17, 2024

Follow up for #53

When user has trades ongoing the app need to notify them on every step of the process that needs his attention

  • trade started
  • payment started
  • other end mark trade as completed
  • trading chat messages

Use this issue to make sure the notification service is online when trades are ongoing and gets shutdown when there are no ongoing trades

@rodvar rodvar added the Trading issue is related to the core functionality of trading label Dec 17, 2024
@rodvar rodvar added this to the MVP (version 0.1.0) milestone Dec 17, 2024
@rodvar rodvar self-assigned this Jan 15, 2025
@rodvar
Copy link
Collaborator Author

rodvar commented Jan 15, 2025

with the trading protocol implemented and the foundation work this is now ready to be implemented

@rodvar
Copy link
Collaborator Author

rodvar commented Jan 21, 2025

Example of phases change ( device Seller & Taker, desktop buyer & maker)

 14914-14914 TradeFlowPresenter      network.bisq.mobile.node.debug       D  Trade State Changed to: TAKER_RECEIVED_TAKE_OFFER_RESPONSE__SELLER_DID_NOT_SENT_ACCOUNT_DATA__SELLER_DID_NOT_RECEIVED_BTC_ADDRESS
  14914-14914 TradeFlowPresenter      network.bisq.mobile.node.debug       D  Trade State Changed to: TAKER_RECEIVED_TAKE_OFFER_RESPONSE__SELLER_SENT_ACCOUNT_DATA__SELLER_DID_NOT_RECEIVED_BTC_ADDRESS
14914-14914 TradeFlowPresenter      network.bisq.mobile.node.debug       D  Trade State Changed to: TAKER_RECEIVED_TAKE_OFFER_RESPONSE__SELLER_SENT_ACCOUNT_DATA__SELLER_RECEIVED_BTC_ADDRESS
  14914-14914 TradeFlowPresenter      network.bisq.mobile.node.debug       D  Trade State Changed to: SELLER_RECEIVED_FIAT_SENT_CONFIRMATION
  14914-14914 TradeFlowPresenter      network.bisq.mobile.node.debug       D  Trade State Changed to: SELLER_CONFIRMED_FIAT_RECEIPT
  14914-14914 TradeFlowPresenter      network.bisq.mobile.node.debug       D  Trade State Changed to: SELLER_SENT_BTC_SENT_CONFIRMATION
  14914-14914 TradeFlowPresenter      network.bisq.mobile.node.debug       D  Trade State Changed to: BTC_CONFIRMED

@HenrikJannsen
Copy link
Contributor

The ChatNotificationService and BisqEasyNotificationsService are the relevant Bisq 2 services for handling notifications. Best to look at the Bisq 2 UI layer code how its used there.

@rodvar
Copy link
Collaborator Author

rodvar commented Jan 24, 2025

we have a OsSpecificNotificationService interface with the OsxNotificationService, LinuxNotificationService etc. impl.

maybe it would be enough to add an Android and iOSNotificationService there, to manage the mobile notification handling. not sure if that would be the right path, i would need to get my head deeper into the topic... but at least for desktop thats the way how we apply the OS specifics 

henrik comment to check out (at least for node)

@rodvar
Copy link
Collaborator Author

rodvar commented Jan 27, 2025

discussions are ongoing related to this -> #173

@rodvar
Copy link
Collaborator Author

rodvar commented Jan 29, 2025

After discussions in both, GH and Mtx we decided to stop efforts on this for the MVP. Outcome as follows:

  1. The MVP will have background notifications in place only for open trades , without guarantee that will work in 100% of the cases (e.g. OS kills the app for whatever reason whilst in background) though it should generally work.
  2. A new Notifications related issue will be created for the next milestone -> Open Trades & My Offers Persistent Notifications #180
  3. Bug Bitcoin address not showing if the app was in the background whilst the other party filled it #181 needs to be solved otherwise turn off notifications for iOS at least

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress Trading issue is related to the core functionality of trading
Projects
None yet
Development

No branches or pull requests

2 participants