应用程序关闭时,离子2本地通知无法正常工作

时间:2017-09-29 08:41:52

标签: ionic2 ionic3 localnotification

我正在使用离子2本地通知。从后台删除应用时,本地通知无效。

这是示例代码

this.localNotifications.schedule({
        text: 'Delayed ILocalNotification',
        every:'minute',
        at: new Date(new Date().getTime() + 60000),
        led: 'FF0000',
        sound: null
     });

1 个答案:

答案 0 :(得分:0)

尝试此推送通知。 https://ionicframework.com/docs/native/push/

本地通知要求应用在后台运行。

相关问题