Moni Bhattacharya
Moni Bhattacharya

Reputation: 133

How to show alert messages popup from background service when app is in background

I need to show an alert message to the user when anything changes on server. I am using a background service for fetching any new updates from server after every 60 sec. Currently I am using notifications to notify user about the update but what I want is, to show an alert message popup for the same whether the app is in background or foreground. Please suggest what should I do to achieve the same.

Upvotes: 1

Views: 2323

Answers (1)

Joehl
Joehl

Reputation: 3701

You should not do that, because it's against the design/style guidelines from Android. The only way you should do that is via notification-system.

But look at this answer. Maybe that's also a way you could go: https://stackoverflow.com/a/7918720/2653134

Upvotes: 1

Related Questions