In order to complete the push function, after learning about the business and researching the requirements, we began to search online. The most noteworthy is
Article: Http://blog.csdn.net/zhuqilin0/article/details/6527113
Source codeYes: https://github.com/Redth/APNS-Sharp
You only needCodeYou can change it to the part you use.
Notes:
1. on the server side, you can customize the push content, which can contain a maximum of 149 characters. If it is a Chinese character, it takes up to two characters.
2. The text style of the pushed content cannot be customized, and HTML tags are output directly.
3. You can customize the number of pushes and the number in the upper right corner of the push icon.
4. The. p12 file is the certificate file, which is provided by the client during development (the certificate password is also provided ).
5. After receiving the push information from the device, the user sends the devicetoken and device ID to the server interface, and the server puts it into the database. After uploading documents and other operations,
The server searches for the corresponding user based on the device ID and sends the push Based on the permission.