Recently, the company made an application and assigned me a push module. At the beginning, it was quite simple. Third-party libraries have everything and do not have to deal with APNS directly. Later, the more you write, the more you find, the less simple it is. A lot of things must understand the deep principles to facilitate future development. Today, let me briefly talk about pushing.
Push: a message or a photo is pushed from one device to another. (The device here refers to the iPhone)
Taking our company's applications as an example, we can draw a picture for you to understand.
File: // Users/yinguoqiang/Desktop/screenshoot overview 202014-04-01%204.57.1920.20pm.png
It is easy to see from this figure that the steps are required to push a message. However, what should I pay attention to during the push process.
1. You must have your own developer account and APNS certificate.
2. If the company permits it, we recommend that you use a third-party push framework. Several companies in China are doing well, such as Baidu and Aurora.
3. Start encoding as needed.
4. push notifications, text information, and much simpler. However, it is much more complicated to push audio and video.
I have been studying the problem of audio transcoding recently. I will wait a few days to bring you a transcoding demo, which is absolutely easy to use. The demo is not yet mature.