Observe best practices to help improve the success of software development for Sybase Unwired Platform.
Set up your development environment and develop your application using the procedures in the Developer Guide for BlackBerry.
Check Network Connection Before Login
Use offlineLogin to test the wireless connection before a login attempt is made. If the wireless connection option has been switched off, the loginToSync call takes a long time to fail when a wrong password is entered, with an 'Invalid Password' error message appearing only after a timeout.
Constructing Synchronization Parameters
When constructing synchronization parameters to filter rows to be download to a device, if the SQL statement involves two mobile business objects, you must use an "in" clause rather than a "join" clause. Otherwise, when there is a joined SQL statement, all rows of the subsequent mobile business object are filtered out.
Clear Synchronization Parameters
When using synchronization parameters to retrieve data from an MBO during a synchronization session, you may want to clear the previous synchronization parameter values.
Clear the Local Database
Each time you redeploy a package on the Unwired Server, the client application should clear the local database. After clearing the database, login again so that the local database is reconstructed.
Process Synchonized Data
When performing data synchronization, apply logic to the data that is synchronized.
Create a Custom Callback Handler
Create a custom callback handler if the application requires a callback (for example, to allow the client framework to provide notification of synchronization results).
Turn Off API Logger
In production environments, turn off the API logger to improve performance.