有没有办法显示固定的通知,比如 Android 更新通知,强制用户点击它?
因为如果用户关闭通知并稍后打开应用程序,所有数据都将消失。
最佳答案
使用插件cordova-plugin-local-notifications
,您可以显示持久性
通知。
通过使用此代码:
cordova.plugins.notification.local.schedule({
text: "Persistent Notification",
ongoing: true,
...
});
关于javascript - 防止解雇通知 - Cordova,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38977375/