CodeIgniter RESTful, async / background process

前端 未结 4 1757
悲&欢浪女
悲&欢浪女 2020-12-11 06:18

I\'m using codeIgniter RESTful API (https://github.com/philsturgeon/codeigniter-restserver) that return information (json format) to my android/iphone app.

There are

4条回答
  •  不知归路
    2020-12-11 06:58

    Yes this is possible.

    You should look at PHP exec() and this link. You should set up a function in your controller to be called from the command line. you will then pass in an array of the GCM/APNS data to be used.

    This solution is not ideal because you won't be able to tell the client that all message were sent successfully. You will send back 200 to say the request was received ok and that is all.

提交回复
热议问题