React native JPush react本机本地通知横幅未在Android上显示

React native JPush react本机本地通知横幅未在Android上显示,react-native,notifications,React Native,Notifications,使用Jpush react native,本地通知在android上调用时不会显示横幅,只会振动并添加到通知中心。(android的默认优先级)。 操作系统:MacOSMojave 反应本机0.59.1 jpush-react-native:2.6.6 测试地点:华为nova 2i,mi 9 se 如何提升本地通知的优先级 我可以从极光文件中看出这是可能的 " JPushInterface.EXTRA_NOTI_优先级 支持SDK 3.0.0或更高版本,支持rom 16或更高版本。 当默认值

使用Jpush react native,本地通知在android上调用时不会显示横幅,只会振动并添加到通知中心。(android的默认优先级)。

操作系统:MacOSMojave 反应本机0.59.1 jpush-react-native:2.6.6 测试地点:华为nova 2i,mi 9 se

如何提升本地通知的优先级

我可以从极光文件中看出这是可能的 " JPushInterface.EXTRA_NOTI_优先级 支持SDK 3.0.0或更高版本,支持rom 16或更高版本。 当默认值为0且范围为-2到2时,其他值将被忽略并默认。 通知优先级

Bundle bundle = intent.getExtras();
String prio = bundle.getString(JPushInterface.EXTRA_NOTI_PRIORITY);
"

我试图将优先权添加到额外部分,但没有成功

JPush.addLocalNotification({
messageID: "123456789",
title: "testMe",
content: "messageValue",
extras: { priority: '2' }
})
注意:我可以通过设置启用浮动通知来触发横幅。但是通过使用其他库,我能够触发本地通知横幅,而无需用户修改其设置

谢谢