我正在研究离子项目。
如果用户在下载我的应用程序后很长时间没有打开应用程序,我想向他们发送本地通知。例如,如果通知3天没有打开,我会发送通知。但我无法弄清楚如何。
你能帮助我吗?
您可以使用以下命令从服务器发送通知:
对于本地通知,这里有一种方式:
每当用户打开时,应用程序会安排从当前日期起3天后的本地通知。 (确保在添加新通知之前删除先前的计划通知。)
在这种情况下,如果用户打开应用程序通知将自动重新计划,否则通知将根据其上次计划触发。
You can create a system in which you track user like ,
if user's opens your App then you must update true value for that user with time in your database and now you can compare current time with user's time value and if its more then 3 days you must send notification to that user.