【发布时间】:2022-10-01 01:14:06
【问题描述】:
- iOS14.0
- cordova-plugin-local-notifications0.9.0-beta.2
你好。抱歉翻译不佳。
我正在使用 Cordova 开发应用程序并使用 \"cordova-plugin-local-notifications\" 插件来实现本地通知。
目前,我在应用程序移到后台 10 秒后输出本地通知, 我写了以下内容
cordova.plugins.notification.local.schedule({
id: 1,
title: \"Test\",
text: \"Test Message.\",
trigger: {unit:\"second\", in:10}
});
如果我们实现这个过程,即使在应用程序关闭后也会输出本地通知。
关闭应用程序后如何防止本地通知输出?
标签: ios cordova cordova-plugins localnotification