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


Attachment: INAPNSSender.java
Description: Binary data


On 27/giu/2011, at 23.30, Jesse Tayler wrote:


regarding iphone push notifications (APNS)

I see some folks are using

http://code.google.com/p/javapns/

and a few implementations are floating around.

one or two persons have indicated they might share or submit frameworks to WOnder - but I don't see anything quite yet?

is it a good time to dive down that rabbit hole and who has some suggestions or experiences to share?


_______________________________________________
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/amedeomailing%40insigno.it

This email sent to [email protected]


---------------------------------
Amedeo Mantica

WOWODC 2011 : July 1-2-3, Montreal. wowodc.com

 _______________________________________________
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]

Reply via email to