IOS Aurora Push

Source: Internet
Author: User

1. Sign up for Aurora push developer account

https://www.jpush.cn

2. Log on to Aurora website--Create app

3. Upload the push development certificate and product certificate

Note: Upload the P12 certificate, so before uploading the CER certificate to the P12 certificate, which is the Exchange certificate

After you've created your app, record the App_key.

4. Integrated Aurora push in the project

Download the Aurora Push SDK

Https://www.jpush.cn/common/products#product-sdk

  Note: server-side development needs to download the corresponding SDK

5. the necessary framework

    • Cfnetwork.framework
    • Corefoundation.framework
    • Coretelephony.framework
    • Systemconfiguration.framework
    • Coregraphics.framework
    • Foundation.framework
    • Uikit.framework
    • Security.framework
    • Libz.dylib

6. Create and configure the Pushconfig.plist file

    • Channel:publish Channel Representative release version
    • App_key: Fill in the App_key obtained by step 3.1. The Application Management center of the Aurora official website can also be found.
    • Aps_for_production:
      • The 1.3.1 version is added to indicate whether the app is published with a production certificate (Ad_hoc or app Store), 0 (the default) is a developer certificate, and 1 is a production certificate publishing app.
      • The values set here suggest setting values by corresponding certificates.
      • In 1.2.2 or previous version of the configuration file, there is test_mode this key, the new version of the SDK is no longer used, you can delete it.

7. Add code to the project

1-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) Launchoptions2 {3Self.window =[[[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]] autorelease];4Self.window.backgroundColor =[Uicolor Whitecolor];5 [Self.window makekeyandvisible];6 7     //Required8 #if__iphone_os_version_max_allowed > __iphone_7_19    if([[Uidevice currentdevice].systemversion Floatvalue] >=8.0) {Ten     //You can add a custom categories One[Apservice registerforremotenotificationtypes: (Uiusernotificationtypebadge | AUiusernotificationtypesound | - Uiusernotificationtypealert) - Categories:nil]; the}Else { -     //the categories must be nil . -[Apservice registerforremotenotificationtypes: (Uiremotenotificationtypebadge | -Uiremotenotificationtypesound | + Uiremotenotificationtypealert) - Categories:nil]; +   } A #else at     //the categories must be nil . -[Apservice registerforremotenotificationtypes: (Uiremotenotificationtypebadge | -Uiremotenotificationtypesound | - Uiremotenotificationtypealert) - Categories:nil]; - #endif in     //Required - [Apservice setupwithoption:launchoptions]; to  +     returnYES; - } the  *- (void) Application: (UIApplication *) application Didregisterforremotenotificationswithdevicetoken: (NSData *) Devicetoken { $ Panax Notoginseng     //Required - [Apservice Registerdevicetoken:devicetoken]; the } +  A- (void) Application: (UIApplication *) application didreceiveremotenotification: (Nsdictionary *) UserInfo { the  +     //Required - [Apservice Handleremotenotification:userinfo]; $ } $  -- (void) Application: (UIApplication *) application didreceiveremotenotification: (nsdictionary *) userInfo Fetchcompletionhandler: (void(^) (Uibackgroundfetchresult)) Completionhandler { -  the  -   //IOS 7 Support RequiredWuyi [Apservice Handleremotenotification:userinfo]; the Completionhandler (uibackgroundfetchresultnewdata); -}

8. On the Aurora website-Send Notice

8.1 Setting up push messages

8.2 Set Push object, general check all

9. Aurora also has statistical functions

IOS Aurora Push

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.