android 8.0以上 推送的抬头显示无法显示
android 8.0以上 推送的抬头显示无法显示 会直进进入通知里面 收到不会直接出现横幅 (app在后台)
试了很多方法 但是没有效果
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
JPushInterface.setDebugMode(true);
JPushInterface.init(context);
JPushInterface.setChannel(context, "channel");
CustomPushNotificationBuilder builder = new CustomPushNotificationBuilder(context, R.layout.customer_notitfication_layout, R.id.icon, R.id.title, R.id.text);
builder.statusBarDrawable = R.drawable.status_icon;
builder.layoutIconDrawable = R.drawable.icon;
JPushInterface.setPushNotificationBuilder(1, builder);
android 8.0以下正常