Arouter PendingIntent
Postcard postcard = ARouter.getInstance().build("/im/MessageActivity");
LogisticsCenter.completion(postcard);
Class<?> destination = postcard.getDestination();
Intent intent = new Intent(context, destination);
Bundle bundle = new Bundle();
bundle.putString("KEY_RECEIVER_IS_GROUP", "2");
bundle.putString("KEY_RECEIVER_ID", model.getOrganizeId());
bundle.putString("KEY_CHAT_TITLE", model.getOrganizeName());
intent.putExtras(bundle);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
new NotificationUtils(context, noticeNum, R.mipmap.logo).sendNotification(title, contentStr, pendingIntent);
网友评论