React native 如何在react native中使用接受和拒绝按钮显示来电通知
我尝试显示来电通知,其中有接受和拒绝按钮。我集成了react原生推送通知库,并尝试了它的所有道具。该通知通过按钮显示,但不会在屏幕上停留太长时间。我的要求是在用户接受或拒绝呼叫之前显示通知React native 如何在react native中使用接受和拒绝按钮显示来电通知,react-native,React Native,我尝试显示来电通知,其中有接受和拒绝按钮。我集成了react原生推送通知库,并尝试了它的所有道具。该通知通过按钮显示,但不会在屏幕上停留太长时间。我的要求是在用户接受或拒绝呼叫之前显示通知 PushNotification.localNotification({ channelId: "test", autoCancel: false, vibrate: true, tag:
PushNotification.localNotification({
channelId: "test",
autoCancel: false,
vibrate: true,
tag: "incoming_call",
group: "incoming_call",
ongoing: true,
priority: "max",
actions: ["Accept", "Reject"],
invokeApp: true,
id: 0,
message: header1,
userInfo: {},
playSound: true,
soundName: "default",
});