Thursday, 15 September 2011

android - How to read URL from Urban Airship push notifications -



android - How to read URL from Urban Airship push notifications -

in android project trying send force notifications using urban airship rich composer. receive notifications , able perform actions when notification clicked.

however, sending url message in ua rich composer. how can read url in broadcast receiver function? there way fetch intent? next code code snippet:

public void onreceive(context context, intent intent) { if (intent.getaction().equals(pushmanager.action_push_received)) { // force received } else if (intent.getaction().equals(pushmanager.action_notification_opened)) { // force opened intent launch = new intent(intent.action_main); launch.setclass(uairship.shared().getapplicationcontext(), myactivity.class); launch.setflags(intent.flag_activity_new_task); uairship.shared().getapplicationcontext().startactivity(launch); } }

any help appreciated.

thanks, mukul

android push-notification

No comments:

Post a Comment