运行 PHP 服务器上的脚本,用于定期向 android/iphone 发送通知

Run PHP script on the server to send notifications to android/iphone on regular intervals

我正在为我的 PHP-angular 使用 code-igniter 框架 project.I 正在寻找 运行 一个 php 脚本,它将 运行 并根据数据库查询定期向 phone 上的所有用户发送推送通知。

有人可以帮我解决这个问题吗?

您可以使用 cronjob 来安排通知。您可以通过命令行访问所有 code-igniter 控制器方法。