Page 1 of 1

Wap Push Sample

Posted: Tue Feb 23, 2016 11:35 am
by syam
Dear Support,

Can you please provide a sample code for WAP Push. I was trying with following code but no luck.

Code: Select all


            string _Title = "WAPpush";
            string _URL = "https://new.dewa.gov.ae/ar-AE";

            lstSubmitSM = Inetlab.SMPP.SMS.ForWapPush()
            .Title(_Title)
            .Url(_URL)                                                                                                                              
            .From("SMS Alert", byte.Parse("0"), byte.Parse("0"))                     
            .To("97150*******", byte.Parse("0"), byte.Parse("0"))             
            .Create(objClient)
            ;


Re: Wap Push Sample

Posted: Tue Mar 01, 2016 7:09 pm
by alt
Hello syam,

I think transaction id is missing.

Code: Select all

 byte transactionId = 0x9;

            client.Submit(SMS.ForWapPush()
                .TransactionId(transactionId)
                .From("1111").To("79171234567")
                .Title("Google").Url("http://www.google.com")
                );
In this case following content should be sent

Code: Select all

<si>
  <indication href="http://www.google.com" action="signal-medium">
    Google
  </indication
</si>