Notification Click not launch the given Activity on Nexus Phones Notification Click not launch the given Activity on Nexus Phones android android

Notification Click not launch the given Activity on Nexus Phones


This is reported issue for kitkat 4.4 not opening activity when click on notification here is an issue url

http://code.google.com/p/android/issues/detail?id=63236

http://code.google.com/p/android/issues/detail?id=61850

suggested workaround is to cancel existing PendingIntent, or use PendingIntent.FLAG_CANCEL_CURRENT

OR

Try below

Adding a flag in Activity in AndroidManifiest.xml

android:exported="true"


This issue is known for Android Kitkat 4.4 and Lollipop.Please add :

android:exported="true"

in android manifest inside activity tag which is supposed to be opened after tapping notification from status bar


You can also add PendingIntent.FLAG_ONE_SHOT to fix this.

PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0,                        PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);