@@ -48,9 +48,9 @@ public static IterableNotification createNotification(Context context, Bundle ex
48
48
PendingIntent notificationClickedIntent = PendingIntent .getActivity (context , 0 ,
49
49
mainIntentWithExtras , PendingIntent .FLAG_UPDATE_CURRENT );
50
50
51
- IterableNotification mBuilder = new IterableNotification (
51
+ IterableNotification notificationBuilder = new IterableNotification (
52
52
context );
53
- mBuilder
53
+ notificationBuilder
54
54
.setDefaults (Notification .DEFAULT_SOUND )
55
55
.setSmallIcon (getIconId (context ))
56
56
.setTicker (applicationName ).setWhen (0 )
@@ -60,21 +60,25 @@ public static IterableNotification createNotification(Context context, Bundle ex
60
60
.setPriority (Notification .PRIORITY_HIGH )
61
61
.setContentText (notificationBody );
62
62
63
+ notificationBuilder .setContentIntent (notificationClickedIntent );
64
+ notificationBuilder .isGhostPush = IterableHelper .isGhostPush (extras );
65
+
66
+
63
67
try {
64
68
ApplicationInfo info = context .getPackageManager ().getApplicationInfo (context .getPackageName (), PackageManager .GET_META_DATA );
65
- mBuilder .setColor (info .metaData .getInt (IterableConstants .NOTIFICATION_COLOR ));
69
+ notificationBuilder .setColor (info .metaData .getInt (IterableConstants .NOTIFICATION_COLOR ));
66
70
} catch (PackageManager .NameNotFoundException e ) {
67
71
e .printStackTrace ();
68
72
}
69
73
70
74
PackageManager pm = context .getPackageManager ();
71
75
if (pm .checkPermission ("android.permission.VIBRATE" , context .getPackageName ()) == PackageManager .PERMISSION_GRANTED ) {
72
- mBuilder .setDefaults (Notification .DEFAULT_ALL );
76
+ notificationBuilder .setDefaults (Notification .DEFAULT_ALL );
73
77
} else {
74
- mBuilder .setVibrate (null );
78
+ notificationBuilder .setVibrate (null );
75
79
}
76
80
77
- return mBuilder ;
81
+ return notificationBuilder ;
78
82
}
79
83
80
84
/**
0 commit comments