private void sendNotification(Bundle bundle) {
mNotificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
Intent intent = new Intent(SplashActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher)
.setContentTitle(bundle.getString("title"))
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(bundle.getString("message")))
.setContentText(bundle.getString("message"));
mBuilder.setContentIntent(contentIntent);
mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());
}
앱이 실행하고 있지 않을 경우, SplashActivity, 실행했을 경우에는 MainActivity에 bundle를 넘기고 싶은데, 체크할 수 있는 방법이 뭐가 있을까요??