How to publish push notifications for iOS and push notifications for iOS

Source: Internet
Author: User
Tags ssl certificate

How to publish push notifications for iOS and push notifications for iOS
Push notifications can be prompted when the application is not started or running in the background. Therefore, many application developers and companies use it to sell their own products. Pushing your own products through this channel is a good choice, but you must abide by the minimum ethical standards (do not push your notifications when users are sleeping ), otherwise, the user will block the notifications of your application without mercy, or even uninstall your application.

I. How many "notifications" Does Apple have ".

In fact, there are three different "notifications" in Apple's Mac OS X and iOS APIs, including broadcast notifications, local notifications, and push notifications. Push notifications and remote notifications are a concept.

2. broadcast notifications.

Broadcast notification is the communication mechanism in observation and query mode. The problem solved is that one object can communicate with multiple objects in the same process, it is widely used in asynchronous calls to return results to multiple objects.

3. Local notification.

Local notifications can be used on iOS devices. They can be sent immediately or after the scheduled time.

4. push notifications.

Push notifications are also called remote notifications. push notifications can be applied not only to iOS devices, but also to Apple computers after Mac OS X10.7. The application scenario is that we want to remotely push some text message notifications to users, even if the application is not running on the front-end, the user is expected to receive a notification, such as stock information. The user installs and views the stock information application. As a stock information provider, the user can push the stock information to the user's devices.

In addition to the operation basis and local notifications, the user sees the same notification form and management, all of which have sound prompts, and the notification methods also have banners and reminders, they are also placed in the notification management center.

5. Export the p12 file for the SSL certificate.

During programming, you need to use the p12 format file. p12 is used to store the private key of a personal certificate. It usually contains a password protected and is in binary format.

6. iOS client programming.

The push notification technology can run on Mac OS X and iOS systems. The programming for pushing notifications on iOS clients is relatively simple. The key to programming is to get the token, Which is returned from APNS and then the content must be handed over to the provider.

7. Push Server programming.

In the specific push process, it is not directly sent by the content provider to the user's device. Instead, the Service Program establishes a trusted connection with APNS and then pushes the data to APNS, then, APNS uses a secure channel to push data to user devices.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.