예제 #1
0
        private void testPush_Clicked(object sender, EventArgs e)
        {
            OMGITWebServices.OMGAdminTestSendData testSendData = new OMGITWebServices.OMGAdminTestSendData();
            testSendData.Message         = testMessage.Text;
            testSendData.Tag             = testTags.Text;
            testSendData.OperatingSystem = Device.OS.ToString();
            OMGITWebServices.OMGPushNotificationSendData OMGSendData = new OMGITWebServices.OMGPushNotificationSendData();
            OMGSendData.Message         = testMessage.Text;
            OMGSendData.Tag             = testTags.Text;
            OMGSendData.OperatingSystem = Device.OS.ToString();

            _client = new OMGITServiceClient(binding, EndPoint);
            //    _client.TestSendNotificationAsync(testSendData);
            _client.SendNotificationAsync(OMGSendData, GlobalData.loginData);
            DisplayAlert("Test Send", "Test push was successfully sent to " + testTags.Text, "Close");
        }