Alibabacloud.com offers a wide variety of articles about free push notification server, easily find your free push notification server information here online.
http://maxwin.me/blog/?p=170
principle
To put it simply, the app has to dynamically update the message on its own, one of which is polling, which brings additional traffic to the user. Another scenario is for the Push,app client and server to keep a long connection directly, with new messages when the server push to t
*) Application didfinishlaunchingwitexceptions :( nsdictionary *) The launchoptions method can be used to register Message notification push capabilities; when the application is not started, determines whether the message is triggered by a remote Message notification; adds the message push
are handled through this step.
(3) The app is in the off state when it receives a push
The same screen on the notice reminder, click on the message into the app, start "Didfinishlaunchingwithoptions" The launchoptions corresponding to the Uiapplicationlaunchoptionsremotenotificationkey part of the method is no longer empty and contains the push content, which is for processing.
3. Other
(1) Remote me
Simply say the implementation of Apple Notification Push Service (APNS) client some of the areas to note:
Use long connections;
Sanbox server is useless, debugging directly with the "gateway.push.apple.com" domain name;
For the wrong notification, Apple will respond to an error response, there is a ide
The requirements are as follows:
1. The company's hrms need push notification, but for various reasons, can not expose the server to the public network!
2. Preferably free, and eco-friendly (can integrate other microservices later)
3 A multi-platform client
Because the first one, so the public number can not be achie
Project needs to push the message, but also want to lower development costs, specific requirements: role users in the background Management page to publish a message, all users of this system on any page can receive his message in a timely manner, and then I on the internet to find a third party free push service-goeasy push
I.Introduction
Push notificationYesWindows Phone 7One of the special features in, this feature allows common developers to achieve multi-tasking in disguise (although not really multi-tasking ). It is a mobile app andWebServiceA dedicated, persistent, and stable channel is established between them to push notifications. After the channel is established, the mobile app can receiveWebService.
II.Cat
Brief introductionThe Apple push notification mechanism is simple: Apple's APNs server is an intermediary and pushes messages to the corresponding device.A picture from an Apple document:Of course, it looks simple, but there are some practical problems.For example, how to distinguish provicer? How to differentiate the device?In simple terms, this is the case:
Apple Configuration
1. Create Apple ID in Apple Developer Website
2. Check on "Push Notification" in the functionality
3. Configure for Push Notification in Development:create certificate
3.1 Upload the certificate file which is generated by keychain access.
How
Certificate SolutionBut the use of MQ to do load balancing has a mission to the shortcomings, is not mutual perception, one but the monitoring server down, the message will be in MQ backlog, in order to solve this problem, I use the subscription function provided by zookeeper to do a monitoring scheme, zookeeper for storage configuration, The health detection system is used to monitor the service status and dynamically modify the configuration, so th
Notnoop/java-apns Github:https://github.com/notnoop/java-apns Introduction
Java-apns is a Java client that serves the APNs service, which is designed to provide a highly scalable, simple, modular interface to the Apple server.
These interfaces require very little code to do most of the cases, and you can also reconfigure the Java-apns library with your own network link library or JSON library.
Links:installation Javadocs changelog Details: easy-to-use
This file is a remote notification server code, do not use hisThe following is the code for writing server-side PHP###### @begin # # #$deviceToken = ' 38c866dd bb323b39 ffa73487 5e157ee5 a85e0b7ce90d56e9 fe145bcc 6c2c594b '; Mobile-to-server DevicetokenPassphrase for the private key (Ck.pem file)$pass = ";Get the param
Apple released an update to the Mac version of Safari browser in Tuesday and enhanced notification push for OS X 10.9 Mavericks users. In Safari 7.0.3, the notification push ushered in greater control, because in previous versions it needed to be managed for each site.
In the latest release, users can simply cancel
When the server is delivering notifications to the client, the client has several things:1. The application is turned off and the notification is displayed, either by tapping the app icon or by clicking the notification, the system launches the app and invokes its proxy method (application:didfinishlaunchingwithoptions:), Deliver notifications via Launchoptions.
Before looking at the declaration cycle, found that after entering a specific interface directly onpause (), and then entered the portal interface, and then destory, do not know what the reason. At first thought is called two times method, but checked again, changed again is useless, thought is the framework problem, found not conflict. Later found that when using the Baidu platform to send can enter the desired interface, with their own service-side code to send a click can not enter.Later look
The premise is that the PUSH Service has been started for the certificate during debugging or publishing.
1. register the remote Notification Type
Uiremotenotificationtype apn_type = (uiremotenotificationtype) (uiremotenotificationtypealert | uiremotenotiftypetypesound |Uiremotenotificationtypebadge); [[uiapplication sharedapplication] registerforremotenotificationtypes: apn_type];
2. Delegation metho
Stringwithformat:@ "Device token = % @", Devicetoken];
Nslog(STR );
}
RequiredRequiredThere isPp id,And alreadyJingOpenNotificationFunction. Provision requiredMust be re-established (after the notification function is enabled in the app ). Delete the original provision and import the new one.
Preparations on the server:
Using this library, you can simply build a
certificates. p12 on the generated certificate, click Add, and enter the password.
Configure in xcode:
Then, on the Mac, use the terminal to the folder where the certificate is located. First, check whether the Mac can be connected to the Apple Server:
$ telnet gateway.sandbox.push.apple.com 2195Trying 17.172.232.226...Connected to gateway.sandbox.push-apple.com.akadns.net.Escape character is '^]'.
If the above content appears, it indicates no p
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.