I moved from Jane
Original address of this article:The original address
In fact, the integration of a push on the way has been very bumpy, do not know what their push is in the end, transparent, ordinary push, what is normal. I’ll write it here, no code, just to illustrate what a push channel should look like in the right case.
Ios messages are divided into two parts: one is the notification bar message that goes through the APN and the other is the transparent message that goes through the push channel. These two parts are the server push code that integrates the push channel and the backend colleagues will set up two different methods when the message is delivered Your client is in the background (i.e., the client is offline) then will receive notice to apn passthrough into offline messages Only when the next time you online (that is, next time when applied to the front desk) will be issued If issued when the application is at the front desk so that the client has received the passthrough news directly
When cid is online, the client will receive a notification from the APN notification bar. If cid is online, the client will receive a notification from the APN notification bar. If the notification bar needs to be displayed, the client needs to define, process and parse the notification bar