There is this new warning about using PendingIntent.getBroadcast as a notification's content intent:
builder.setContentIntent(PendingIntent.getBroadcast(FirebaseNotification.this, newID,
new Intent(getString(R.string.notif_broadcast))
.setClass(FirebaseNotification.this, NotificationActions.class)
.putExtra(getString(R.string.thumbnail), bitmap);
Lint message:
Notifications should only launch a BroadcastReceiver from notification actions (addAction)
Notifications should only launch a BroadcastReceiver from notification actions (addAction) (This BroadcastReceiver intent is launched from a notification; this is discouraged except as notification actions)
I do not see this anywhere yet in the documentation, so why is this now discouraged? Is it for user experience and to provide clear context of what the notification can do?