I'm setting up server side push through PlayFab in our Unity project and have run into a problem. I got the iOS side working fine but hit an issue with Android. We're not able to use the supplied PlayFab Receiver Plugin as it would bump us to min target SDK of 21 (we wish to stay supporting 16) as well as blows our max dex count, mainly as the plugin seems to include the appcompat.aar which adds 5k+ calls.
I tried to use the Prime31 receiver but think the problem is the format of what PlayFab sends for the message and what Prime31 is expecting is different.
I can successfully get the user registered to GCM as well as to PlayFab. I go to the user's ID on the PlayFab dash and send them a test push via that. The logs on my device show that I receive a push and a notification does appear however the title and message just say:
Default Title (title parameter not sent with notification)
Default Subtitle (subtitle not sent with notification)
Here is an example of the Custom JSON I am sending via the PlayFab dash:
{ "message": "here is a message", "smallIcon": "small_icon", "title": "This is a title", "collapse_key": "do_not_collapse", "tickerText": "Ticker text here...Ticker text here...Ticker text here", "sound": "1", "subtitle": "This is a subtitle", "vibrate": "1", "from": "589644589374", "largeIcon": "large_icon" }
and here is what I think PlayFab usually sends:
{ "Title": "Message from Game", "Icon": "open_chest", "Sound": "raw/open", "Message": "You've gained gold!", "CustomData": { "gold": "5", "currency": "AU" } }
Has anyone successfully sent a push from PlayFab to the Prime31 receiver? Any help would be much appreciated.
Cheers