ACINQ / phoenix

Phoenix is a self-custodial Bitcoin wallet using Lightning to send/receive payments.
https://phoenix.acinq.co
Apache License 2.0
644 stars 97 forks source link

Payments received in the background not always reflected in UI #343

Closed robbiehanson closed 1 year ago

robbiehanson commented 1 year ago

When a payment is received in the background, the main app needs to perform some additional tasks in order for the payments to be reflected within the UI.

(See technical details in AppDelegate.didReceiveMessageFromAppExtension)

Currently, we rely on our XPC solution to trigger this code, however that's not 100% reliable. There may be certain scenarios in which the message isn't received. A more reliable solution is migrate to using shared UserDefaults (i.e. GroupPrefs)