I’ve been testing/using the most recent version of game thrive for iOS 8. Notifications work great but on android, after setting every thing as per the directions, whenever a notification comes to the device the app crashes.
java.lang.RuntimeException: Unable to instantiate receiver com.gamethrive.GcmBroadcastReceiver: java.lang.ClassNotFoundException: Didn’t find class “com.gamethrive.GcmBroadcastReceiver” on path:
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.gamethrive.GcmBroadcastReceiver” on path: DexPathList[[zip file
It looks like it isn’t finding a part of our Java SDK or the WAKE_LOCK permission didn’t get set somehow. What permissions show for your game in the device settings?
Could you send us a full logcat(of your app starting and the crash), your build.settings, and config.lua to contact@gamethrive.com? We can look through these for you to see if anything is off.
I’ll give the latest daily build a try to make sure there isn’t anything in there that would break our SDK.
When you tried our sample project did your device show up on our site and show as subscribed? Could you check for errors or warning of the logcat when the app start to when you send the notification?
Yes, if you could try the sample project again with your appID and Google project number that would be helpful. If that works then we can work on getting it to work in your game.
I just reproduced your crash on Corona 2014.2454. I also just tested our plugin on the latest public build 2014.2393 and it is working. Was GameThrive working for you on an older version of a daily build or is this the first time you are setting up our plugin up?
If you also tried an older version too and it was crashing just the same let us know the version numbers as this will help us find what created this issue.
I would use the latest public build instead of a daily build as everything is more stable on them. We will post back when we find more details on the daily build with our plugin on Android.
I ran our sample program with Runtime:addEventListener(“notification”, notificationListener) and the notificationListener function gets called just fine with a table in the event parameter when I open a local notification. I built with the latest public build 2014.2393 and ran on Android 4.4 and iOS 8 devices.
For you on 2014.2393 is notificationListener not getting called or is the event parameter blank? Is it not working for you on Android or iOS?
Hey, glad everything is working for you on the public build now.
Quick update on the daily builds, it seems daily build 2431 and newer doesn’t work with GameThrive but build 2429 and older do. It seems android.support.v4 was removed in those newer builds and is required for GameThrive to work. Since the public build is working you will probably stick to that but I’ll update everyone here when it is working on the newer daily builds.