Reputation: 3499
I would like to know if it is possible to have a popup appear in the middle of the screen when recieving a notification and my app is on the background or closed. I would then want the popup to remain there untill clicked on. Is this possible on Android?
I am using flutter with firebase but I would just like to know if it is possible at all on android.
Upvotes: 1
Views: 1010
Reputation: 3499
You cannot do it with a notification. But using https://pub.dev/packages/system_alert_window you can overlay custom UI over other apps. I ended up using the cloud messaging onBackgroundMessage to trigger this overlay.
Upvotes: 1