Skip to main content

Push Registry: how to use it?

5 replies [Last post]
Anonymous

Hi everyone,

I'm trying to wake up my application with a SMS Push Registry, but nothing works for me, I
have tried a lot of ports and in a lot of devices (Nokia 6020, 6101, N95, Sony E. K300, K750,
W810 and a BlackBerry Curve) none o this have worked.

Have someone got success with SMS Push registry ever? Wich port should I use?

I know I have sucessfully registered the push, because it gives me no exception and I can
have it in the PushRegistry.listConnections() method. I had Success testing in the WTK
emulator but I can set the port in the sending device.

Someone help me.... I'm stucked.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joaogalli
Offline
Joined: 2007-10-30

How can I read the message I have received via Push? or at least remove it?

sfitzjava
Offline
Joined: 2003-06-15

In your notifyIncomingMessage() it gets a MessageConnection object, let's call it inConn.

Message inMsg = inConn.receive();
String text = ((TextMessage)inMsg).getPayloadText();
inConn.close();

give that a try.

-Shawn

joaogalli
Offline
Joined: 2007-10-30

Thanks sfitz,

I have made some real tests with real devices and the receive method really removes the message.....

sfitzjava
Offline
Joined: 2003-06-15

Joao,

I ran into many issues with SMS pushregistry a few years back and collected my experiences in a form of a small book on the information. It is available at www.cafepress.com/sms_midp2/

Also I did a talk on the subject a couple years back at JavaOne, and here is a link with the slides, and sample code. Maybe that will help.
http://onshoresystems.com/smsapi/

-Shawn

C. Enrique Ortiz

You can't listen for SMS messages directed to the SMS inbox. You can
listen for SMS traffic directed to your *own* port. This means your
server-side must send to that port your app is listening to (via the
user defined header within the SMS message). See the PushRegistry
article here:
http://weblog.cenriqueortiz.com/java-me-midp-articles-tech-tips-source-c...

ceo

Joao Galli wrote:
> Hi everyone,
>
> I'm trying to wake up my application with a SMS Push Registry, but nothing works for me, I
> have tried a lot of ports and in a lot of devices (Nokia 6020, 6101, N95, Sony E. K300, K750,
> W810 and a BlackBerry Curve) none o this have worked.
>
> Have someone got success with SMS Push registry ever? Wich port should I use?
>
> I know I have sucessfully registered the push, because it gives me no exception and I can
> have it in the PushRegistry.listConnections() method. I had Success testing in the WTK
> emulator but I can set the port in the sending device.
>
> Someone help me.... I'm stucked.
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> --------------------------------
> Spam/Virus scanning by CanIt Pro
>
> For more information see
> http://www.kgbinternet.com/SpamFilter.htm
>
> To control your spam filter, log in at
> http://filter.kgbinternet.com
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]