当点击特定类型的推送通知时,我正在尝试开始一项新活动。我已经扩展了ParsePushBroadcastReceiver
类(我正在使用 Parse)和覆盖onPushOpen
的方法。
当我点击推送时,会调用以下代码:
Intent postIntent = new Intent(App.context, SinglePostActivity.class);
postIntent.putExtra(SinglePostActivity.ARG_POST_ID, postId);
context.startActivity(postIntent);
但什么也没有发生。我在 AndroidManifest 中成功注册了我的活动。如何成功启动活动?