For iOS, the app must use NotificationServiceExtension to process notifications in the background.
Add NotificationServiceExtension to your iOS project. This extension allows your app to process the incoming push notification data in the background before presenting it to the user.
When a push notification is received, the NotificationServiceExtension will be triggered, waking up the app.
In the extension, establish a connection with the Breez SDK to process the incoming payment.
Once connected, the app should wait for completion status from the Breez SDK that the payment has been received.
After confirming the payment, display a notification.
For a complete reference, see how we implemented it in c-breez wallet: NotificationService.swift.