I already built push notification by using Firebase Cloud Messaging on Eclipse Project. Now I want to make dialog with OK button when I touch the notification on status bar.
Can anyone help me? or suggest how to handle it? FYI, anytime (when the apps on background or in foreground) if I touch the notification on top it will show a dialog box.
Many thanks.
Firstly you need to use a pending intent with your notification that defines how to handle the notification click.
See that the intent points to a DialogActivity, so we need to create a DialogActivity to handle the intent. See the code below :