Java-ios push

Source: Internet
Author: User

Previously done messages were pushed to Android and iOS clients. This is just about iOS push, the iOS push will be pushed to Apple's APNs server, and then the APNS server pushes to the iOS device. Because of this, the first version of the message pushed Apple's adoption of a direct push to Apple's APNs server.
1) based on the implementation of Javapns 2.2
Reference Address: http://www.cnblogs.com/lihaozy/archive/2013/03/13/2957904.html
Reference Address 2:http://511930751.iteye.com/blog/1595298
Jar Download: http://code.google.com/p/javapns/downloads/detail?name=JavaPNS_2.2.jar&can=2&q=
The disadvantage is that when you push multiple devices, one of the udid is incorrect, causing the APNs connection to disconnect, and the subsequent push cannot be completed. (My judgment is UDID length = =)

2) Direct use of APNS push
Reference Address: Https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG /chapters/applepushservice.html#//apple_ref/doc/uid/tp40008194-ch100-sw21
The client needs to upload Udid after each login (last year, Udid will not change, because Udid leaked, advertising everywhere, this year when found Udid will change).
Chinese reference: http://www.cocoachina.com/applenews/devnews/2014/0528/8582.html

3) Other third-party
Aurora (API call frequency 600/min, Tag support Unlimited),
A push,
Baidu
Homing Pigeon (the label only supports 1W, API frequency is basically unlimited, currently no charge, iOS and Android Client Push Accessid\secretkey is separate) ...

Push internationalization for iOS (fixed words)
before doing camera message push, such as motion detection, arming what, start only push out is Chinese, finally need internationalization, use is the following method
Reference official documentation
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ Chapters/applepushservice.html#//apple_ref/doc/uid/tp40008194-ch100-sw21
{"    APs": {"        alert": {            "Loc-key": "Game_play_request_format",            "Loc-args": ["Jenna", "Frank"]        },< c5/> "sound": "Chime"    },    "Acme": "foo"}

   Loc-key client set up a multilingual dictionary, push arrives, the system automatically displays the language that is not used, is not the original value.
   If the alert does not write anything, the iOS device is not displayed.

4) on Git
Reference Address Https://github.com/hengyunabc/zpush

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.