Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notification action with pending intent not working on JellyBean+

I've implemented a push notification with a pending intent so when the user clicks the notifications it opens a screen with details.

It's working fine on all devices HTC .. Samsung S2, S3, ACE and ACE+

But for some reason it's not working S4 or S5 .. anybody had this problem ?

I'm using the NotificationCompact class

like image 367
elmorabea Avatar asked Oct 01 '22 20:10

elmorabea


1 Answers

Set requestCode on PendingIntent to non-zero value.

PendingIntent.getActivity(this, 42, intent, PendingIntent.FLAG_UPDATE_CURRENT);
//                              ^^ THIS
like image 138
Pitel Avatar answered Oct 07 '22 20:10

Pitel