iOS Push Notification within Corona

I would like to send push notifications from my Corona app but I’m not sure what the php script in the iOS push notification tutorial is doing:

http://www.coronalabs.com/blog/2011/12/21/push-notifications-for-ios-in-corona-sdk/

Specifically, lines such as: [lua]stream_context_set_option($ctx, ‘ssl’, ‘local_cert’, ‘ck.pem’);[/lua] are unclear to me.

Has anyone made good progress with push? [import]uid: 8271 topic_id: 35684 reply_id: 335684[/import]

Hey, @horacebury, I wish I could help. The thing is, I got the push notification working perfectly without much headache by following the very same blog instruction – super excellent tutorial.

I don’t know exactly what that line does, but you might just want to implement it? Once I put everything together (including badge to the payload body), it’s been working like a charm.

Are you trying to convert the PHP script to Python or some other language? Is that why you want to understand what that line does?

Naomi [import]uid: 67217 topic_id: 35684 reply_id: 141910[/import]

Basically, all of that stream_context code is opening an SSL (https) socket to Apple’s Push server using your certificate/key setup (the .pem file) so that the script can pass information to Apple to send out.

[import]uid: 199310 topic_id: 35684 reply_id: 141917[/import]

Hi All,
newbie question here.
I am certainly not at the stage to understand this now … but in the future.

So having just submitted my 1st app today - i saw a video from apple saying you can not change your provisioning profile once an app is released .
How does this relate to including push Notes on an app update.
I guess my Q is do you have to set everything up on the provisioning profile (push Notifications etcc.) B4 attaching it to your app - Can you include Push Notes to your PP at a later date?
Thanks
T. [import]uid: 199068 topic_id: 35684 reply_id: 141935[/import]

Well, I’m not really sure of the role that services like PushWhoosh and Urban Airship are playing. They seem unnecessary to me. So, I’m trying to code around them. The problem is that I can’t execute that script in my Corona app, so I need to convert it. I’m fine with the network api’s in Corona, but I don’t know php. [import]uid: 8271 topic_id: 35684 reply_id: 141942[/import]

Thanks; Do you know what the equivalent Corona lua would be? [import]uid: 8271 topic_id: 35684 reply_id: 141943[/import]

Yes, I believe you can because it’s configured under App ID’s, not PP. [import]uid: 8271 topic_id: 35684 reply_id: 141944[/import]

Hey, @horacebury, I wish I could help. The thing is, I got the push notification working perfectly without much headache by following the very same blog instruction – super excellent tutorial.

I don’t know exactly what that line does, but you might just want to implement it? Once I put everything together (including badge to the payload body), it’s been working like a charm.

Are you trying to convert the PHP script to Python or some other language? Is that why you want to understand what that line does?

Naomi [import]uid: 67217 topic_id: 35684 reply_id: 141910[/import]

Basically, all of that stream_context code is opening an SSL (https) socket to Apple’s Push server using your certificate/key setup (the .pem file) so that the script can pass information to Apple to send out.

[import]uid: 199310 topic_id: 35684 reply_id: 141917[/import]

Hi All,
newbie question here.
I am certainly not at the stage to understand this now … but in the future.

So having just submitted my 1st app today - i saw a video from apple saying you can not change your provisioning profile once an app is released .
How does this relate to including push Notes on an app update.
I guess my Q is do you have to set everything up on the provisioning profile (push Notifications etcc.) B4 attaching it to your app - Can you include Push Notes to your PP at a later date?
Thanks
T. [import]uid: 199068 topic_id: 35684 reply_id: 141935[/import]

Well, I’m not really sure of the role that services like PushWhoosh and Urban Airship are playing. They seem unnecessary to me. So, I’m trying to code around them. The problem is that I can’t execute that script in my Corona app, so I need to convert it. I’m fine with the network api’s in Corona, but I don’t know php. [import]uid: 8271 topic_id: 35684 reply_id: 141942[/import]

Thanks; Do you know what the equivalent Corona lua would be? [import]uid: 8271 topic_id: 35684 reply_id: 141943[/import]

Yes, I believe you can because it’s configured under App ID’s, not PP. [import]uid: 8271 topic_id: 35684 reply_id: 141944[/import]