It is certainly possible to change the Android behavior to match iOS’. I just think Android’s current implementation is better because the notification alert behaves consistently in and out of the app. But that said, I’ll note your request down to discuss with the rest of the team later.
Hi Joshua,
For some reason I cannot read your code blocks as they appear empty.
Regarding the pushing notification, the problem we are having is that the JSON parsed through the server triggers the push notification but its content (data) comes empty. Can you shed some light?
The “custom” field in your JSON packet must be a table and the “custom” field must be within the same JSON table that contains your “alert” field.
Have a look at sample project “Notifications/GooglePushNotifications” that is included with the Corona SDK. That sample project sends a push notification to itself via the onTap() function by building a JSON packet and sending it to Google’s servers via a network.request(). That should prove helpful.
Hi Joshua,
For some reason I cannot read your code blocks as they appear empty.
Regarding the pushing notification, the problem we are having is that the JSON parsed through the server triggers the push notification but its content (data) comes empty. Can you shed some light?
The “custom” field in your JSON packet must be a table and the “custom” field must be within the same JSON table that contains your “alert” field.
Have a look at sample project “Notifications/GooglePushNotifications” that is included with the Corona SDK. That sample project sends a push notification to itself via the onTap() function by building a JSON packet and sending it to Google’s servers via a network.request(). That should prove helpful.