I'm developing an application in Flutter and I would like to add a feature that allows receiving background notifications for new orders, even when the app is closed or in the background. After receiving a new order notification, I want the app to open a screen with the order details without using local notifications or Firebase Cloud Messaging (FCM).
I've looked into WorkManager and it seems like it could be helpful for performing background tasks, but I'd like some guidance and specific examples on how to use WorkManager to receive background notifications for new orders and display a screen with the order details when the app is closed or in the background, and how to bring the app to the foreground when the mentioned screen is opened.
Can anyone provide me with a code example in Flutter that demonstrates how to implement this functionality using WorkManager without using FCM or local notifications?
I would greatly appreciate any help or suggestions you can provide.
Thank you!