Hello, I'm trying to integrate your push notification service into an existing game project, but I'm running into difficult regarding push notifications:
I built and tested the Push test Unity project using my own Google project ID, user ID, API key, etc, and it worked successfully. But when I make all the same API calls in my own project, I see that the push notification was successfully sent, but it does not get received on the other end (on the Android device).
As far as I can tell, everything substantial is the same between the two projects except for:
1) line 32 of the AndroidManifest.xml, where the name is different (your sample uses com.shephertz.app42.unity.android.test.MainActivity, while this will crash my game on launch, so I use "com.unity3d.player.UnityPlayerNativeActivity").
2) Likewise, I use com.unity3d.player.UnityPlayerNativeActivity for the "onMessageOpen" meta data inside the "service" tag.
3) Instead of calling all the APIs in Start() as is done in the sample, I make the following calls in Start():
sp = new ServiceAPI (apiKey, secretKey); // For JSON data storage
App42API.Initialize(apiKey, secretKey);
And then call App42.SetLoggedInUser() and RegisterForPush() after the user has manually entered their user name to log in. After all that is done, I make the call to sendPushToUser().
My guess is that the problem lies either in the aforementioned differences in the AndroidManifest.xml, or in the fact that one or more of the .jar files under Plugins/Android (which were copied from the Push sample project, as instructed in the documentation) contains code or a structure that is specific to the Push sample project, and not immediately re-usable in a different project with a different bundle identifier. For example the "sampleAndroid.jar" file appears to be structured in a manner (containing the "MainActivity" class) that is specific to the push test project.
Here is a link to my AndroidManifest.xml:
http://codeshare.io/5MIMs
Do you have any ideas I can try to get push notifications working in my own project? Thanks!