9***@qq.com
9***@qq.com
  • 发布:2024-05-14 17:26
  • 更新:2024-05-14 17:26
  • 阅读:136

#插件讨论# 【 自定义推送铃声和渠道 - DCloud移动团队 】安卓多个铃声初始化设置setCustomPushChannel

分类:uni-app

安卓设置多个铃声这个设置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)
});

2024-05-14 17:26 负责人:无 分享
已邀请:

要回复问题请先登录注册