Hello there
I want to set up push notifications for my game.
I made a google developer project.
After that I created a server-api key and a google cloud message api key.
I linked the google cloud message api key with my app inside the google play developer console.
After checking if everything works fine (https://api.playfab.com/Documentation/Admin/method/SetupPushNotification with a 200 response), I linked the server api key within playfab, so android push notifications are enabled.
I installed the newest versions of the PlayFabClientSDK.unitypackage and also the AndroidPushPlugin.unitypackage.
Then i downloaded the PushDebuggerProject (https://github.com/PlayFab/PlayFab-Samples/tree/master/TestingTools/PushNotifications) and followed the README.
After inserting the TitleId and the Google project id from my google developer project i wanted to run the application.
The scenes starts fine, without any crashes and the console says:
I/Unity ( 8311): Starting Auto-login Process I/Unity ( 8311): Making Request Using WWW I/Unity ( 8311): /Client/LoginWithAndroidDeviceID I/Unity ( 8311): https://**HERE IS MY TITLE ID**.playfabapi.com/Client/LoginWithAndroidDeviceID I/Unity ( 8311): {"TitleId":"**HERE IS MY TITLE ID**","AndroidDeviceId":"ee88d1bfb8e9a0ecab0cd8e012140cdd","OS":"Android OS 5.1.1 / API-22 (LMY47X/N915FYXXU1COJ2)","AndroidDevice":"samsung SM-N915FY","CreateAccount":true} I/Unity ( 8311): SenderID: escoba-push-notifications I/Unity ( 8311): Createding new _PLayFabGO I/Unity ( 8311): On Device: ee88d1bfb8e9a0ecab0cd8e012140cd I/Unity ( 8311): PlayFab Authentication Successful! -- Player ID:AFFD928FF8834AB6
After pressing the "registration" button, the console says that:
Push Token was null or empty:
So I had a debug session and after that I noticed that the function OnGCMReady is never called, which is used to get the token.
Can anyone of you guess what I did wrong?
Kind regards
Andreas