private void SendPushNotification(string id) { var request = new SendPushNotificationRequest(); request.Message = "Test message"; request.Recipient = id; request.Subject = "Received the message"; request.AdvancedPlatformDelivery = new List<AdvancedPushPlatformMsg> { new AdvancedPushPlatformMsg { GCMDataOnly = false, Json = "{\"name\":\"john\",\"age\":22,\"class\":\"mca\"}", Platform =PlayFab.ServerModels.PushNotificationPlatform.GoogleCloudMessaging } }; request.TargetPlatforms = new List<PlayFab.ServerModels.PushNotificationPlatform> {PlayFab.ServerModels.PushNotificationPlatform.GoogleCloudMessaging}; PlayFabServerAPI.SendPushNotification(request, (s) => {Debug.LogError("Sent");}, (e) => {Debug.LogError("error" + e.ErrorMessage);}); } Whats wrong with this piece of code ? When send this push notification along with "AdvancedPlatformDelivery" , its not delivering. But when remove it, its working as usual. Kindly suggest me whats wrong with this code?,
private void SendPushNotification(string id) { var request = new SendPushNotificationRequest(); request.Message = "Test message"; request.Recipient = id; request.Subject = "Received the message"; request.AdvancedPlatformDelivery = new List<AdvancedPushPlatformMsg> { new AdvancedPushPlatformMsg { GCMDataOnly = false, Json = "{\"name\":\"john\",\"age\":22,\"class\":\"mca\"}", Platform =PlayFab.ServerModels.PushNotificationPlatform.GoogleCloudMessaging } }; request.TargetPlatforms = new List<PlayFab.ServerModels.PushNotificationPlatform> {PlayFab.ServerModels.PushNotificationPlatform.GoogleCloudMessaging}; PlayFabServerAPI.SendPushNotification(request, (s) => {Debug.LogError("Sent");}, (e) => {Debug.LogError("error" + e.ErrorMessage);}); } What's wrong with this piece of code ? When try to send push notification, i am always getting this error "Invalid input parameters". But when i remove the "request.AdvancedPlatformDelivery", push notifications are delivering properly. But i need to send the json part. Kindly suggest me what wrong with this piece of code ?