我想从节点服务器点击我的expo应用程序中的任何通知时播放其他声音 . 我找不到除“默认”之外的任何其他声音 . 我还可以使用其他任何声音播放除默认声音之外的其他声音关于expo中的通知 . 我的nodeJS代码如下:
const receipts = expo.sendPushNotificationsAsync([
{
to: userObj.pushToken,
sound: 'default',
body: notification,
data: { withSome: notification },
priority: 'high',
},
]);
1 回答
我查了docs的Message Format部分,发现了这个:
看起来无法通过应用程序更改声音 .