[BUG] iOS Push Messages - custom data parsing

We’re having the same problem. Any solution yet?

I’m having the same issue with the custom data crashing the iOS app, but not on Android.

Additionally, the “badge” will not update, or even display when receiving a remote push, even though the payload includes it.

Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### --- Notification Event --- Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### badge: 12 Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### type: remote Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### name: notification Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### custom Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### { Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### } Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### sound: ping.aiff Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### alert: Test Push 2 Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### applicationState: active

If I use local notifications, or set the applicationBadgeCount property it will display.

This has been confirmed by another developer.  Any ideas?

Thanks in advance.

I’m having the same issue with the custom data crashing the iOS app, but not on Android.

Additionally, the “badge” will not update, or even display when receiving a remote push, even though the payload includes it.

Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### --- Notification Event --- Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### badge: 12 Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### type: remote Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### name: notification Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### custom Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### { Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### } Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### sound: ping.aiff Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### alert: Test Push 2 Apr 9 13:46:56 develephants-iPod pushy[2586] \<Warning\>: ### applicationState: active

If I use local notifications, or set the applicationBadgeCount property it will display.

This has been confirmed by another developer.  Any ideas?

Thanks in advance.

I’m having a similar issue but with local notifications. This is code that was working on a previous build of Corona prior notifications moving to the plugin.

We’re using build 2015.2545.

If you enter the app through the local notification the app crashes. Restarting the app, it will work as usual.

Here’s a snippet of the code.

local EventNotification = {

alert = choice[1][“EVENT_TEXT”], --the notification message

badge = 1,

sound = “notification.wav”,

}

local secondsFromNow=60*2

local saveTime=secondsFromNow+os.time()

notifications.cancelNotification( )

local notification1 = notifications.scheduleNotification( secondsFromNow, EventNotification )

I should also mention, this has only been built on iOS devices, so I can’t say how it works on Android.

Can I get you to file a bug report please?   Make sure it has a minimal app that demonstrates the issue.  Include the config.lua, build.settings, and any assets needed and put it in a .zip file.

Engineering needs this to help solve the problem.  Once you get the email back from the bug tracker, please post the case # here as a reference.

Thanks

Rob

I’ll do that. Rob, one question, do you have to call registerForPushNotifications() if you’re only using local notifications?

http://docs.coronalabs.com/daily/plugin/notifications/registerForPushNotifications.html

Maybe that has something to do with it.

You should not need to call register for local notifications.  Its a push only feature.

Rob

I’m having a similar issue but with local notifications. This is code that was working on a previous build of Corona prior notifications moving to the plugin.

We’re using build 2015.2545.

If you enter the app through the local notification the app crashes. Restarting the app, it will work as usual.

Here’s a snippet of the code.

local EventNotification = {

alert = choice[1][“EVENT_TEXT”], --the notification message

badge = 1,

sound = “notification.wav”,

}

local secondsFromNow=60*2

local saveTime=secondsFromNow+os.time()

notifications.cancelNotification( )

local notification1 = notifications.scheduleNotification( secondsFromNow, EventNotification )

I should also mention, this has only been built on iOS devices, so I can’t say how it works on Android.

Can I get you to file a bug report please?   Make sure it has a minimal app that demonstrates the issue.  Include the config.lua, build.settings, and any assets needed and put it in a .zip file.

Engineering needs this to help solve the problem.  Once you get the email back from the bug tracker, please post the case # here as a reference.

Thanks

Rob

I’ll do that. Rob, one question, do you have to call registerForPushNotifications() if you’re only using local notifications?

http://docs.coronalabs.com/daily/plugin/notifications/registerForPushNotifications.html

Maybe that has something to do with it.

You should not need to call register for local notifications.  Its a push only feature.

Rob