BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-24-2008, 01:44 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8800
PIN: N/A
Carrier: AT&T
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default PushRegistry disconnected after first auto-launch

Please Login to Remove!

We are porting our J2ME application to BlackBerries and are having a problem with the PushRegistry. We have registered our (signed) application to listen on an SMS port in the JAD file (i.e., sms://:<port>), and once installed, runs correctly. After we install, our application can be auto-launched via an incoming SMS to our registered port. However, after the first auto-launch, the application seems to get unregistered and all subsequent SMS messages go directly to the standard SMS inbox. We've tried reinstalling the app, but all messages still end up in the SMS inbox and our app won't auto-start anymore (not even once after a reinstall unless the port is changed). We've been testing on the BlackBerry 8800 - any help would be appreciated.
Offline  
Old 07-26-2008, 12:47 PM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8800
PIN: N/A
Carrier: AT&T
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I have figured out the problem. If you read the list of connections via PushRegistry.listConnections(false) and try to open and read from a connection that has no data available (i.e., listConnections(true) would have not returned the connection), the application seems to unregister from the AMS. We had to use this approach due to bugs in other phones.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.