We made some big changes in our GameThrive 1.4.0 update which requires you to make the following changes if your using Corona 2014.2393 or later.
1. Open main.lua and update GameThrive.HandleLaunchArgs(launchArgs, “APPID”, callback) to GameThrive.Init(“APPID”, “googleProjectNumber”, callback)
Example:
local launchArgs = ... GameThrive.HandleLaunchArgs(launchArgs, "5eb5a37e-b458-11e3-ac11-000c2940e62c", DidReceiveRemoteNotification)
Should now be:
GameThrive.Init("f51b0afc-483c-11e4-9c8a-fba5466a0e1d", "703422764264", DidReceiveRemoteNotification)
2. Open config.lua and remove the whole notification = {} selection.
3. If your game is for iOS under “plist = {” add this line.
UIBackgroundModes = {"remote-notification"},
.
New Features:
1. Delayed iOS notification prompt option.
You can now delay the iOS system prompt asking to accept notifications to a later time. Just call GameThrive.DisableAutoRegister() before GameThrive.Init(…) to delay the prompt. Then call GameThrive.RegisterForNotifications() anytime to show the prompt.
2. Interactive Notifications with Action Buttons.
On gamethrive.com when creating a new notifications under Options section there is a “Include Action Buttons” option. The buttons you add here will show up in the notification on iOS 8 and Android 4.1+ devices. When the user press one just look for the id in additionalData.actionSelected. You can use this example code in your DidReceiveRemoteNotification function to try it out.
if (additionalData and additionalData.actionSelected) then native.showAlert("Button Pressed!", "ButtonID:" .. additionalData.actionSelected, { "OK"} ) end
3. Xcode 5 and 6 compatible
The GameThrive plugin will work with both Xcode 5(iOS SDK 7.1) and Xcode 6(iOS SDK 8). This fixes the “registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later” error without having to work around it.
See our blog for even more details on this update https://gamethrive.com/blog/interactive-notifications-with-ios-8-and-android-4-1-and-more/
1.4.3 Change Log (2014-10-06)
* iOS 8 - Updated to our latest native iOS plugin which now correctly reports users as unsubscribed on gamethrive.com if they pressed ‘don’t allow’ to the notification prompt.
* iOS 8 - If the user changes notification setting for your app in the system settings then gamethrive.com will reflect the changes when the user goes back to your app.
1.4.4 Change Log (2014-10-14)
* IconNotificationDefault-*.png now works again for Android remote notifications.
* Fixed iOS issue where IdsAvaialble’s callback would not fire a 2nd time in cases where it should of.