anonymous-dev
anonymous-dev

Reputation: 3499

Is it possible in android to show a persistent popup on notification?

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

Answers (1)

anonymous-dev
anonymous-dev

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

Related Questions