Using the GameThrive code sample as a guide I was able to create a GameThrive module in my game and successfully send push notifications that add more game credits if the user clicks on the notification. This works fine if the app is currently running as well as if the app is in the background. But if the app isn’t running (if the device is restarted, for example), the push notification is received and if the message is clicked the app is launched, but the credits are not added to the user’s total. (I’m trying this on Android so the notification is dismissed at this point.)
When the app is launched my GameThrive module is run, but presumably since the message has already been received it doesn’t trigger the code where I add credits from the HandleLaunchArgs listener. I am doing this from a GameThrive module that I include in main.lua rather than directly in main.lua itself, could this be the problem? Or am I not understanding how push or GameThrive is supposed to behave? I’m a push Newb so any insight would be appreciated. Thanks!
-Stephen