There is one requirement where I need to show alert box with yes and no button when I receive push notification using GCM.
There will be two scnerios:
If app is in background, User gets the notificaiton in titile bar. On click of notification user will be directed to app and here alert box needs to be shown where user will be having two options i.e Yes or No
If app is in foreground, User automatically gets alert box needs to be shown where user will be having two options i.e Yes or No**
Please help me achieving this.