Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2007

    Push Registry problem


    I have an app. that sends and receives sms.
    I'm also using push registry.

    My problem is when the phone is turned off and I send it 10 sms's and turn it on again, it asks me whether to start the app (so far so good...) and while starting the app crush and goes back to the phone menu.
    this scenario happens only with the S60 phones.

    Following the Difference in SMS and PushRegistery behavior in Series 40 and S60 - TSJ000393.

    and the WMAExample (which doesnt take care of receiving many sms's with push registry) It seems The solution to the problem in TSJ000393 doesnt solves this case, or the solution is not clear enough.

    please help.

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2005

    Re: Push Registry problem

    If the application is started normally and crashes after so, it's probably a problem with your code. The TSJ000393 ticket was designed as a solution to other problem.

    Try reading all SMSs using PushRegistry.listConnections(), because they are queued there. Also be sure to try/catch any exceptions your application may be throwing, because this is most likely the reason why it's getting crashed anyway.


  3. #3
    Registered User
    Join Date
    Jul 2007

    Re: Push Registry problem

    In ticket TSJ000393 it is written to use PushRegistry.listConnections() in the startapp before registering the listener. it is impossible to read all messages because u dont know how message there are on the connection. I use one port for my push registry and i send 10 messages to the phone while it is off.
    pushRegistry.listConnection return with array with 1 connection only
    doing receive() I get only one message. I have 9 messages left on this connection, so using


    the receive will block untill there is a new message.
    which means i cant register a MessageListener.

    using a Message instead the while loop crashes the app when there are so many messages.

    Is there any other way to clean all the waiting messages from the line?
    (please notice u cant know how many messages there are.)

    I'm catching IOException and Exception, is there anything I'm missing ?


  4. #4
    Registered User
    Join Date
    Jul 2007

    Re: Push Registry problem

    anybody have any idea???

Similar Threads

  1. push registry port problem
    By Larry101 in forum Mobile Java General
    Replies: 7
    Last Post: 2007-12-14, 22:46
  2. Replies: 5
    Last Post: 2007-04-16, 08:57
  3. Nokia 6255:query related to push registry
    By mitesh852 in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-19, 14:26
  4. Please HELP! Push Registry on signed MIDlet
    By johnbutler in forum Mobile Java General
    Replies: 7
    Last Post: 2005-11-23, 15:48
  5. Push Registry on Nokia 6255
    By DanielAspel in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-08-29, 08:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts