I am trying to start a new activity when a particular type of push notification is tapped. I've extended ParsePushBroadcastReceiver
class (I'm using Parse) and overridden onPushOpen
method.
When I tap on the push, the following code does get called:
Intent postIntent = new Intent(App.context, SinglePostActivity.class);
postIntent.putExtra(SinglePostActivity.ARG_POST_ID, postId);
context.startActivity(postIntent);
But nothing happens. I have my activity registered successfully in AndroidManifest. How can I start the activity successfully?