In post: http://forums.coronalabs.com/topic/36167-i-dont-get-remoteregistration-event/
Rob Miracle says, On an app cold start: "If you start your app by tapping it’s icon, launchArgs.notification won’t be set. If you tap the notification and the OS starts your app code, then you get launchArgs.notification.
So the issue I’m having with this is
My icon is there, showing a badge of 1 … so doesn’t it make sense, like with any other App, the user might see the notification, but instead tap on the icon where they see the badge? Perhaps the notification disappeared at the top of the screen – perhaps the user doesn’t even know how to use the notification center. They see the notification, they see a badge of 1, so they tap on the app.
But then, when the App starts, there is no information returned about the notification.
It just seems strange that you would start up an App with a pending notification, but then give us no way to know the notification is there pending.
So then the user will just see the badge number there, and they will have to eventually go into their notification center, locate the push message and tap it? There’s no other way for them to have the App respond with the appropriate response to the message’s payload?
Doesn’t seem right. It seems that launchArgs.notification SHOULD BE SET if the App is launched from a cold start with a pending badge and a pending notification.
I have confirmed it does work the way Rob says, but I’m unaware of any other App that works this way.
How can I access LaunchArgs or notification event from an App cold start with a pending notification?