| Hello Is very easy to use, I made a really tiny wrapper for it (just basic notifications), see attachment I needed to just know when my app start so I had in my app constructor try { INAPNSSender.initializeAPNS( this.resourceManager().pathURLForResourceNamed("YOU CERTIFICATE FOR APNS.p12", "app", null).getPath() , "1234 < CERTIFICATE KEY"); INAPNSSender.addDevice("Amedeo", "PUT PHONE UUID HERE"); INAPNSSender.addDevice("Phone1", "PUT PHONE UUID HERE"); INAPNSSender.addDevice("Phone2", "PUT PHONE UUID HERE"); INAPNSSender.addDevice("Phone3", "PUT PHONE UUID HERE"); INAPNSSender.send("Amedeo", "Confindustria WebSite started", 1, "Purr.aiff"); <---- this sends the notification to the named device, the badge number and the sound } catch (Exception e) { //e.printStackTrace(); } All methods are static, you could use everywhere Regards Amedeo |
INAPNSSender.java
Description: Binary data
On 27/giu/2011, at 23.30, Jesse Tayler wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
