Reputation: 2682
I need to show a Message box for user with two buttons(open application, cancel) when an application is in background. How can I realise it (should it be a background task) ?
Upvotes: 2
Views: 742
Reputation: 8126
You can't show custom message box from background.
As a workaround you can show Toast Notification
from Background Agent
. Look at ShellToast
, it's made for this purpose. When toast appears, users can tap it to open application as you need.
Upvotes: 4