Why notification text is not shown in Android 7.0(Nougat) -


i displaying notification in app working fine in os versions except android 7.0(nougat) here code

  intent notificationintent = new intent(context, homescreenactivity.class);          // set intent not start new activity         notificationintent.setflags(intent.flag_activity_clear_top | intent.flag_activity_single_top);          pendingintent intent = pendingintent.getactivity(context, 0, new intent(), pendingintent.flag_update_current | notification.flag_auto_cancel | notification.flag_show_lights);          notification.builder builder = new notification.builder(context);         builder.setcontentintent(intent)                 .setautocancel(true)                 .setpriority(notification.priority_max)                 .setcontenttitle(title)                 .setstyle(new notification.bigtextstyle().bigtext(message))                 .setcontenttext(message);         if (build.version.sdk_int >= 21)             builder.setvibrate(new long[0]);          notification.flags = notification.default_lights | notification.flag_auto_cancel;         if (android.os.build.version.sdk_int >= build.version_codes.lollipop){             builder.setcolor(context.getresources().getcolor(r.color.colorprimary));             builder.setsmallicon(r.drawable.ic_nav_reward_point);         }else{             builder.setsmallicon(r.drawable.launcher_icon);         }         builder.setautocancel(true);         builder.setcontentintent(intent);         notification.flags |= notification.flag_auto_cancel;          // play default notification sound         notification.defaults |= notification.default_sound;           // vibrate if vibrate enabled         notification.defaults |= notification.default_vibrate;          notification = builder.build();         notificationmanager.notify(m, notification); 

in android 7.0 able see notification icon, title not showing complete notification text.

is there missing android 7.0 ? appreciate.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -