I am trying to send notification on Iphone with payload which is getting failed ..same code is working fine without payload
- AppleNotificationPayload p = new AppleNotificationPayload();
- p.AddCustom("clientcode", "sdfsdfsdf");
- p.AddCustom("lotId", "sdfdsfsdf");
- p.AddCustom("productCode", "sdfsdffsd");
-
- String gcm_token = dtnoti_GcmList.Rows[r]["gcmToken"].ToString().Trim();
- String DeviceType = dtnoti_GcmList.Rows[r]["deviceType"].ToString().Trim();
- push.QueueNotification( new AppleNotification()
- .ForDeviceToken(Convert.ToString(dtnoti_GcmList.Rows[r]["gcmToken"]))
- .WithAlert(Convert.ToString(message))
- .WithBadge(1)
- .WithContentAvailable(1)
- .WithPayload(p)
- .WithCategory(Convert.ToString("TradingVivekamAlert"))
- .WithSound("sound.caf"));
when i remove .WithPayload(p) it works fine