问题描述
我正在尝试使用Local Notification,但无法实现如上图所示的一些自定义。该操作图标未显示在通知中,我想单击操作按钮而不关闭通知。
请在下面输入我的代码。
public constructor(private platform: Platform,private localnotifications: localnotifications) {
this.platform.ready().then(() => {
this.localnotifications.on('play').subscribe(notification => {
this.play();
});
}
this.localnotifications.schedule({
id: 1,title: 'App Name - App info here ',text: this.musicName + ' - ' + this.artistName,led: 'FF0000',icon: '../../assets/img/icon1.png',actions: [
{
id: 'pause',title: 'Pause',launch: false,icon: '../../assets/img/icon2.png'
}
]
});
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)