Posting this because it’s likely going to save someone else from pulling their hair out like I was today.
Stepped through this tutorial to get push up and running (great tutorial Jonathan!)
http://www.coronalabs.com/blog/2011/12/21/push-notifications-for-ios-in-corona-sdk/
Quickly got notifications to work but they weren’t showing a badge. After trying a bunch of things, I realized that you MUST have a valid icon (e.g. Icon.png / Icon@2.png) for your app for notifications to work.
Another fine point - though this one I’ve seen mentioned somewhere on the internet - is that you also have to make the badge parameter an integer and not a string … so your payload should look like
“badge” => 2
instead of
“badge” => “2”
Hope this saves someone their sanity one day! [import]uid: 32462 topic_id: 30550 reply_id: 330550[/import]
[import]uid: 52491 topic_id: 30550 reply_id: 122575[/import]