安卓设置多个铃声这个设置plugin.setCustomPushChannel 推送管道中channelId 跟soundName 改怎么填呢,是用plugin.setCustomPushChannel调用多次代码如下:
plugin.setCustomPushChannel({
soundName: "timeout",
channelId: "timeout1",
channelDesc:"test渠道描述",
enableLights:true,
enableVibration:true,
importance:3,
lockscreenVisibility:0
},(error)=>{
console.log('setCustomPushChannel-----error ',error)
});
plugin.setCustomPushChannel({
soundName: "print",
channelId: "print1",
channelDesc:"print渠道描述",
enableLights:true,
enableVibration:true,
importance:3,
lockscreenVisibility:0
},(error)=>{
console.log('setCustomPushChannel-----error ',error)
});
9***@qq.com
- 发布:2024-05-14 17:26
- 更新:2024-05-14 17:26
- 阅读:136
0 个回复