let _self = this;
const _handlePush = function(message) {
if(message.payload){
const bgAudioMannager = uni.getBackgroundAudioManager();
bgAudioMannager.title = message.title;
bgAudioMannager.singer = message.content;
bgAudioMannager.coverImgUrl = '';
bgAudioMannager.src = message.payload;
bgAudioMannager.play();
bgAudioMannager.onPlay(function(){
_self.loadData();
})
}
}
plus.push.addEventListener('receive', _handlePush)
功能是想要在收到推送时,播放一个语音通知
对接到华为厂商推送时,通知栏收到了离线消息,但是语音并没有播放
1 个回复
3***@qq.com
请问问题解决了没有?