Got a little problem that's been bugging me..
I've set up my application to receive PUSH notifications from Urban Airship and that all works fine, but when I tap on a notification in the notifications center, nothing happens.
I want my app to open when a user taps a PUSH notification - what can I do to achieve this?
Any help is as always greatly appreciated.
Thanks
Following one of their sample projects (https://github.com/urbanairship/android-samples/tree/master/app/src/main/java/com/urbanairship/sample), you can extend the AirshipReceiver class and then override the onReceive method. This did the trick for me:
You need to use a custom notification builder and use one of your activities as the PendingIntent.
https://docs.urbanairship.com/android-lib/reference/com/urbanairship/push/CustomPushNotificationBuilder.html
Create a pending Intent to start the activity and set it in notification using setLatestEventInfo.
Example:
More info can be found here