google cloud messaging - PushSharp "Notification send timed out" issue -
I am trying to use Pushshahar to send information to my mobile devices using Google Gcm. Based on this, I have downloaded my sample code from Github, I have written my sample code. Below is my sample code.
var googleKey = CustomConfigurationManager.GetValueFromSection ("appSettings", "GoogleServerAccessKey"); AndroidPushBroker.RegisterGcmService (New PushSharp.Android.GcmPushChannelSettings (googleKey)); GCMNotification androidNotifcation = new GcmNotification (). WithDryRun () .Json ("{\" Warning \ ": \" Hello World! \ ", \" Badge \ ": 7, \" Sound \ ": \" sound.caf \ "}); AndroidPushBroker.QueueNotification (androidNotifcation); The problem is that I have used WithDryRun () and when adding the request it shows "Zedson data" with "dry_run": true, but still I get an error due to the failure due to the notification: "Send notification Time is over. " Anyone can tell me what I am missing?
without having to it , and see if you have notification Anything in an event such as Sensor , ChannelException , notification file , or service exceptions .
Comments
Post a Comment