sending push in other languages using server api

Thank you =)) Is it possible to se all messges that have been recivied or only the last one? At the moment Im trying to add received messages to a table with no luck. Im asking because som messges are b64encoded and are decoded inside “DidReceiveRemoteNotification”. But at the moment its only possible to se the last message when encoded. I can use GameThrive.ClearAllNotifications() but what exactly does it clear?

You can only get the notification that was tapped on (or ones comes in while the app is in use) with DidReceiveRemoteNotification.

GameThrive.ClearAllNotifications() clears all notifications from the app no matter if they are with Corona’s local notification plugin or remote with GameThrive.

Thanks.

You can save your messages into app local storage to access it on later in the app. When ever remote notification received push messages, you can retrieve that message and save into app local storage.

Hi hs00105, how would I go about to do that? I can save them to a table inside the app with DidReceiveRemoteNotification, but outside the app I have no idea? Thanks

Hello Sam,

We don’t have a way to retrieve all notifications that have been sent to the device from GameThrive in Lua however we did just add Android background data (silent notification) support and already have support from our server to send iOS content-available notifications. Since your using Enterprise you can follow these instructions to add the Android BroadcastReceiver and do any processing or saving of the data you need to. On iOS you just need to hook into the application:didReceiveRemoteNotification:fetchCompletionHandler: selector.

Note we just added Android part today so it should show in the next Daily plugin builds. You should see version 1.8.0 printed in the terminal when you have the newest version.

Thanks.

Hello Sam,

If you have a scenario where you have to display the previous push messages to your app user. In that case, you required some data base where you can save your push message when user received on device.  And you can easily maintain it by fetching it from data base and display it on device UI. Apart from displaying the messages, you can apply analytic’s to show user that, how much he is using his app and ho much time? At what time he/she reads the messages? Or play the game etc by saving/fetching the information into data base.

Thanks,

Himanshu Sharma 

Thank you both for the information  :slight_smile: