Any news about the Push Notification code?

So it is included in the daily builds but no code on how to use it?

Anyone with some ideas on how to use it? [import]uid: 22737 topic_id: 19355 reply_id: 319355[/import]

Yes, looks like you have to:

  • check the Enable for Apple Push Notification in Apple Developer Portal
  • download the SSL Certificate
  • check is Wi-Fi or cellular connection
  • use Ansca token
  • send push notification from server in JSON format
  • get it in app like local notification and serialize

Hard stuff :wink: [import]uid: 12704 topic_id: 19355 reply_id: 74716[/import]

I’m not 100% sure the sending will be that hard. If you run a wordpress site, there is a plugin called EasyAPNS. The only hardness with setting that up was converting the certificate file from .cer format to .pem format, but that was simply running openssl from the Mac command line, uploading the .pem files to the server, putting them somewhere and telling the plugin where to find them.

In theory simply posting articles will trigger notifications. Of course that won’t help much for games, but for news type apps, it should work well.

On the app side, there will have to be a call that registers the device with the server. You will have to alert the user to accept the push notifications. Now one thing that has me a bit curious is that for normal apps have an entry in the Settings app that allows the user to control push notifications. I’ve not seen a Corona SDK app that has put things into the settings area. Hopefully this will be a feature of this new feature.
[import]uid: 19626 topic_id: 19355 reply_id: 74730[/import]

I believe the API and possability is already inside Corona SDK and I have tried some funtions but I can’t get the token back from Apple so something is missing. [import]uid: 22737 topic_id: 19355 reply_id: 74860[/import]

Hopefully we will get the documentation soon. [import]uid: 19626 topic_id: 19355 reply_id: 74920[/import]

Hi everyone,

I know you’re really anxious to get this working in your app. The Push Notification feature was in at build 2011.707, but there were a few things still left to do (in regards to how Xcode signs apps, provisioning profiles, etc.).

We believe he have everything good to go now, and the final bits should be the next Daily Build (after 2011.710).

Once the build is up, I’ll be posting an in-depth blog tutorial that explains exactly how to get this working.

So that’s the latest update.

Thank you very much for your continued patience.

Best, [import]uid: 52430 topic_id: 19355 reply_id: 74986[/import]

Great news Jonathan!!!
You are my hero of this works, I have come up with a slick distribution model for any kind of data using Push so that is why I am so eager to get this up and running :slight_smile:

Merry X-mas! [import]uid: 22737 topic_id: 19355 reply_id: 74989[/import]

Ok, so Daily Build 2011.711 just posted, and I confirmed everything is working with Push Notifications with this build.

I’ll be publishing a walk-through very soon, but don’t hold your breath just yet because there is A LOT of steps involved with Push Notifications, and a lot of things to explain.

Unfortunately most of the steps are in Apple’s Provisioning Portal, on your machine, and on your own push notification server so I’m going to try to break them down into several manageable chunks because Push Notifications can be pretty overwhelming at first.

The good news is, the Corona-side of things is pretty straight forward.

Stay tuned :slight_smile: [import]uid: 52430 topic_id: 19355 reply_id: 74991[/import]

The MASSIVE tutorial has just been published, here it is:

http://blog.anscamobile.com/2011/12/push-notifications-for-ios-in-corona-sdk/ [import]uid: 52430 topic_id: 19355 reply_id: 75080[/import]