Android

Just updating everyone that we fixed the Android issue above when building with Corona daily builds 2430 and newer.

I’m still not having any joy on Android. Using 2459 and not seeing my remote pushes arrive. Also tried older build before these changes and nothing coming there either and those definitely worked couple of days ago.

@Appoet do thing work for you now?

Never mind,  I have to try to debug this further. I can send through GameThrive website, but sending through my own server is not working now for some reason.

jonjonsson are you getting an error or an id back from our server when you’re using our JSON API? You can send us your full JSON message to contact@gamethrive.com and we can look it over if you still having issues.

Thanks.

Thanks for help. My device changed deviceID for some reason. I didn’t know that could happen. My server was not handling it correctly.

Sorry, I’m still having issues with Android unrelated to my previous server problem.

If I use an older build before the changes I get a different deviceID than if I use a new build (2459). Should that be happening?

Sending push to older build deviceID works fine as always, but new build deviceID does not receive push.

Old build:

All push methods work fine.

New build: 

Shows up as subscribed player on GameThrive website.

Different deviceID than old build reported by GameThrive.IdsAvailableCallback(IdsAvailable)

Pushing with Rest API to that or old deviceID does not work

Pushing with Rest API with GameThrive PlayerID does not work

Pushing through GameThrive website does not work.

I looked at your app on our server and it looks like in your new builds you are using a different Google Project number in your app. Could you double check your GameThrive.Init() line with your project number on Google’s site https://console.developers.google.com/project

A few days ago made an update to our server to better report GCM warnings and errors. If you see any failures after sending a notification you can go to the settings page to see them. To clear them just resave the GCM settings.

Google’s registration ids are different per package name(case sensitive) per device per Google project number. A different registration id means a new playerID on our system.

Thanks, embarrassing mistake, a case of badly named projects in the Google Developer Console. The one I should have been using was called “API project” and another one I was trying to use was the name of my app but used for other purposes. 

Nice addition to be able to see errors on the settings page.

The remote and local push notification icons are not the same now. Local uses the correct one: IconNotificationDefault-*hdpi.png but remote is using the app icon. It was not like this before.

Sorry, the notification icon override was over looked since our native SDK doesn’t currently support it either. I believe we can support the same file naming override as Corona’s built in notifications do in an update. Is this a show stopper? Are you planning on releasing/updating your game soon?

I think I will release on Thursday. I use both remote and local a bunch together so its a bit weird if they are not the same.

If you can’t make it I could temporarily change my local icons to be same as app the icon. 

Good to know, I will try to shoot for getting that working on Tuesday then.

Thanks.

Hey,

Just pushed GameThrive SDK v1.4.4 with the IconNotificationDefault-*.png fix and should be available in the next 2 or 3 hours. You can check for the version number in the terminal/commandline before you build or in logcat after it is running on the device.

Thanks.

Great! Thank you very much.

Hello,

Could you look at the logcat from the device? If it is crashing there should be an error stack trace in there that will help us pin point your issue.

Thanks.

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?

Also a few more question:

What build of Corona are you using?

Are you building on Windows or Mac?

Is your Android SDK up to date?

What version of Android are you testing on?

Does our sample app work correctly for you?

https://github.com/GameThrive/GameThrive-Corona-SDK-Push-Notification-Plugin-Sample

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.

Thanks.

The most recent daily build

Mac

I just updated it.

4.4.2

It doesn’t crash but it doesn’t work.

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?

I’m sorry I might have messed that, did you want me to put our app key and information into the sample project?

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.