Launching a MIDlet with Service Indication from NowSMS

Launching a MIDlet with Service Indication from NowSMS SearchSearch
Author Message
Atif Razzaq
New member
Username: Atif37

Post Number: 1
Registered: 05-2007
Posted on Thursday, May 24, 2007 - 11:26 pm:   

Hi all
I am sending an PAP Push message of service indication which contains XML content to NowSMS PPG that is successfully delivered to handset. Now i want to launch a midlet when i get that Service Indication on handset, i think MowSMS PPG sends Service Indication to port 2948, if i try to register the midlet with push registry with this port number, handser doesnt allow me to install it. Now i can register it with some other port number but then i will have to send WAP Push Service Indication to that port which is registered for my midlet. Is this possible? if yes how can i configure NowSMS to send WAP Push to that port. Please help me!
Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7199
Registered: 10-2002
Posted on Monday, June 18, 2007 - 04:29 pm:   

Hi,

Are you sure that you want to send a WAP Push (using the actual WAP Push format)?

Or do you just want to send an SMS message to a specific port for which your application has registered?

We made it a little simpler to send a message to a specific port in the upcoming full NowSMS 2007 release in that we added a "Destination Port" parameter to the "Send Text Message" form in the web interface (and a corresponding URL parameter "&DestPort=XXXX").

But it's still pretty easy using NowSMS 2006 ...

From the web form, use the "Send Binary Message Other" form, specify a user data header (UDH) of:

060504xxxxyyyy

Where xxxx is the destination port in hex, and yyyy is the source port in hex. (If the source port is not important, replace it with 0's.)

In the "Binary Data" field, put in your text, and leave the DCS as 0. (If you want to send binary data, put the hex string for the binary data in the "Binary Data" field, and use a binary DCS value such as 4.)

I suspect that instead of sending a WAP Push to a non-standard port, this is what you really want to do.

Within the WAP Push framework, it is possible to register applications on the handset to receive WAP Push messages that contain a particular content type ... which is the other alternative. But it's generally a lot easier to just send an SMS message to a specific port that your application is listening on.

-bn