I am having a strange error with notification manager.
@Override
public void onMessageReceived(String from, Bundle data)
{
Log.i(TAG, \"IP : \" + (Strin
According to the Android NotificationManager Source Code
if (mContext.getApplicationInfo().targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1) {
if (notification.getSmallIcon() == null) {
throw new IllegalArgumentException("Invalid notification (no valid small icon): "
+ notification);
}
}
This error only happened when you set target API > LOLLIPOP_MR1(22) and notification do not have a small icon.