breez / misty-breez

A mobile app based on Flutter showcasing the use of Breez Liquid SDK
https://github.com/breez/breez-sdk-liquid/
MIT License
7 stars 2 forks source link

Receiving offline payment gets "stuck" in pending #177

Closed Nackoo2000 closed 1 month ago

Nackoo2000 commented 1 month ago
  1. Create an invoice in Misty Breez
  2. Scan with Breez Mobile
  3. Force close Misty Breez
  4. Approve the payment on Breez Mobile

  5. The payment starts to execute but it is stuck pending in Breez mobile until I open Misty again
  6. When I open Misty the payment shows as sent in Breez mobile then becomes pending on Misty and is completed in about a minute.
erdemyerebasmaz commented 1 month ago

Force closing an app behaves differently from manufacturer to manufacturer. It can prevent allocating resources to the application to run in background to process the payment. Do you experience the same issue when application is in the background?

Nackoo2000 commented 1 month ago

Same behavior when in the background

erdemyerebasmaz commented 1 month ago

Please share logs to help us investigate the notification plugin.

Nackoo2000 commented 1 month ago

Receiver logs Misty: l-breez.logs (8).zip

Sender logs Breez mobile: breez.logs (38).zip

erdemyerebasmaz commented 1 month ago

Seeing this error on notification plugin logs: [com.breez.liquid.l_breez.BreezForegroundService] {ERROR} (2024-09-11 10:03:35.536) : Breez Liquid SDK connection failed breez_sdk_liquid.SdkException$Generic: Error: rusqlite_migrate error: MigrationDefinition(DatabaseTooFarAhead) There has been a mismatch between SDK version & notification plugin for the build we've tested.

Misty Breez uses latest published notification plugins and there has been breaking changes on SDK since then. We should look for ways to build notification plugin from scratch when we're not building a published SDK version.

erdemyerebasmaz commented 1 month ago

Fixed with