IOS APNs Push

Source: Internet
Author: User

Foreword: Push is divided into local push and remote push.

The difference between the two is that local push is usually timed push, regular push, or location push. and remote push more diversified, can meet the high requirements. Of course, remote push requires server-side development, the development process is more complex.

1, local push only need to write code on the client, the implementation is simple and easy.

(1) Local push can also receive local push messages if the app is not turned on. Will walk this entrance method

-(BOOL) application: (uiapplication *) application didfinishlaunchingwithoptions: (nsdictionary *) Launchoptions

(2) The app can receive push messages in the background. Click on the push message to open the app and go

-(void) application: (uiapplication *) application didreceivelocalnotification: (uilocalnotification *) notification;

 

(3) The app does not receive push messages when it is running in the foreground, but the Uiappdelegate method

-(void) application: (uiapplication *) application didreceivelocalnotification: (uilocalnotification *) notification; Automatically callback the contents of the message

IOS APNs Push

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.