More pictures and details soon, In the following screenshot. I tried to get everything in one capture.
The app running in the simulator issues an http post uploading an image to the java servlet. The servlet calls sessionRenderer which pushes the image to all open sessions via icefaces version of server push , then a request is made to the apple push notification service to notify all devices registered to the app of the image upload.
The actual steps are.
- On the apps first execution on the phone a call is made to the servlet passing the apns toke
- Run the app on the simulator
- from the simulator upload a new image
- the servlet updates all open session with the image and issues an apns message with payload
- the message appears on the app on the phone.
converting the device token , Admittedly a bit clumsy but it works.
NSString *dt=[devToken description];[request setHTTPBody: [dt
dataUsingEncoding: NSASCIIStringEncoding]];
Then further process on the server.
Comments