简体   繁体   English

在后台推送通知(PHP)

[英]Push notification in background (PHP)

Currently I am using APNS PHP for push notification. 目前,我正在使用APNS PHP进行推送通知。 The problem is I can't respond to the client after it has finished the process and I need to wait until apple responds for the push notification. 问题是我无法在客户端完成该过程后对其进行响应,而我需要等到Apple响应推送通知。

I don't want to wait for the push notification; 我不想等待推送通知; I want to make the push notification in a background process or other thread. 我想在后台进程或其他线程中发出推送通知。 Is this possible? 这可能吗?

I found the other solution in stackoverflow; 我在stackoverflow中找到了另一个解决方案。 some advise one to use a cron job to make it run in the background. 有些人建议使用cron作业使其在后台运行。 But I don't prefer this way. 但是我不喜欢这样。 Is there some other solution? 还有其他解决方案吗?

You can make it asynchronous - put it in queue. 您可以使其异步-放入队列。

Does Apple return anything for Push? 苹果会为Push退货吗? I've been working with APNS for years and never got any response, even after they extended API with error codes. 我与APNS一起工作了多年,即使他们使用错误代码扩展了API,也从未得到任何回应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM