Ejemplo n.º 1
0
 public void TestAndroidPushMessage()
 {
     Assert.IsTrue(TestConfig.UseLiveTests);
     var pushApi = new NET.Api.PushNotification(TestConfig.ApplicationKey, TestConfig.ApplicationMasterSecret);
     pushApi.SendNotification(new AndroidBatchPushNotificationRequest()
      {
           new AndroidPushNotificationRequest()
           {
                APIDS = new List<string> { "68b62108-1638-4cb1-950b-f4552fe974e7"},
                APS = new AndroidAPSBody()
               {
                    Alert="hello world "+ DateTime.Now
               }
           }
      });
 }
Ejemplo n.º 2
0
 public void TestBroadcastToAndroid()
 {
     Assert.IsTrue(TestConfig.UseLiveTests);
     var pushApi = new NET.Api.PushNotification(TestConfig.ApplicationKey, TestConfig.ApplicationMasterSecret);
     pushApi.SendBroadcast(new AndroidBroadcastRequest() { APS = new AndroidAPSBody() { Alert = "hello : " + DateTime.Now } });
 }