赞
踩
1.来电话时发现全屏通知被拦截
拦截原因
1): No Fullscreen intent: suppressed by DND(do not disturb) 被勿扰模式拦截
2).No Fullscreen intent: not important enough 通知优先级不够
2.Fullscreen intent app处理
incallUI发送通知的代码如下
@/packages/apps/Dialer/java/com/android/incallui/StatusBarNotifier.java
private void buildAndSendNotification(
LogUtil.i("StatusBarNotifier.buildAndSendNotification", "notificationType=" + notificationType); //2 log会打印2,表示incallUI发送通知开始
switch (notificationType) {
case NOTIFICATION_INCOMING_CALL: //2
if (BuildCompat.isAtLeastO()) {
builder.setChannelId(NotificationChannelId.INCOMING_CALL); //channel id : INCOMING_CALL
}
// Set the intent as a full screen intent as well if a call is incoming
configureFullScreenIntent(builder, createLaunchPendingIntent(true /* isFullScreen */)); //发送全屏通知
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。