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());
}