简体   繁体   中英

Push notification in background (PHP)

Currently I am using APNS PHP for push notification. 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.

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; some advise one to use a cron job to make it run in the background. 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? I've been working with APNS for years and never got any response, even after they extended API with error codes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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