this is my very very basic implementation is just a wrapper so i can have short pieces of codes in my app
Amedeo package com.insigno.apns; import javapns.back.PushNotificationManager; import javapns.back.SSLConnectionHelper; import javapns.data.Device; import javapns.data.PayLoad; public class INAPNSSender { public static void initializeAPNS(String certificateURL, String secret) throws Exception { PushNotificationManager.getInstance().initializeConnection("gateway.sandbox.push.apple.com", 2195, certificateURL , secret, SSLConnectionHelper.KEYSTORE_TYPE_PKCS12); } public static void addDevice(String deviceName,String deviceID) throws Exception { PushNotificationManager.getInstance().addDevice(deviceName, deviceID); } public static void send(String device, String alert, int badge, String sound) throws Exception { PayLoad simplePayLoad = new PayLoad(); simplePayLoad.addAlert(alert); simplePayLoad.addBadge(badge); simplePayLoad.addSound(sound); Device client = PushNotificationManager.getInstance().getDevice(device); PushNotificationManager.getInstance().sendNotification(client, simplePayLoad); } } On 16/feb/2011, at 17.52, Philippe Rabier wrote: > Hi Andrew, > > We have developed, and still continue to develop, a notification platform > (cross platform, multi application), online for almost one year. If I chime > in, that because it's a service we provide to anyone who want to use it (in > exchange of course of a monthly subscription fee ;-)). It's based on WO of > course but we didn't rely on any other framework/jar (like javapns for > example). > > The main reasons we developed ourselves are : > - it doesn't fit well with our goal to have an abstraction in order to target > iOS, WP7, Android (still in development) environments, ... > - some example work for notification sending but not for the feedback service > (I don't remember if it was javapns or another framework) > - critical part for us so we have to know how coding the notification sending > > I don't think it's the good place/the right time to give more details on our > platform (contact me in private if you need more informations). > > However, if you need some help to develop your own application server, I can > provide you some code if you need it. Let me know. > > Philippe > > On 15 févr. 2011, at 23:04, Andrew Kinnie wrote: > >> Thanks. This should help, once we start actually developing it (i.e. have >> more complete requirements). Evidently, we need to also support Android, so >> we need to research that as well. >> >> Andrew >> >>> >>> Le 15 févr. 2011 à 20:43, Andrew Kinnie a écrit : >>> >>>> Greetings all, >>>> >>>> As I am now an iOS developer (as well as a part time WO developer), and my >>>> new employer has decided to build a server to handle the iOS push >>>> notifications, I thought perhaps building such a thing based on WebObjects >>>> might be worth considering. >>>> >>>> Has anyone used WebObjects to create a server to handle the APNs calls? >>>> (i.e. - I think - communications from the device with the token to the >>>> server, then handle the pushes to the Apple server with the data and >>>> relevant devices) It seems comparatively simple, but I thought I'd ask. >>>> There was a short thread (4 messages) a little over a year ago about this, >>>> referencing http://code.google.com/p/javapns/ and suggesting a component >>>> using it be included in Wonder, but I have not seen anything else. >>>> >>>> Any thought? Suggestions? etc? >>>> >>>> Thanks in advance >>>> >>>> Andrew >>>> >>>> _______________________________________________ >>>> Do not post admin requests to the list. They will be ignored. >>>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>>> Help/Unsubscribe/Update your Subscription: >>>> http://lists.apple.com/mailman/options/webobjects-dev/s.mertz%40improve.fr >>>> >>>> This email sent to s.me...@improve.fr >>> >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com >> >> This email sent to prab...@me.com > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/amedeomailing%40insigno.it > > This email sent to amedeomail...@insigno.it >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com