SynchronizationProfile

Before synchronizing with Unwired Server, you must configure a client with information for establishing a connection with the Unwired Server where the mobile application has been deployed.

Example 1

ConnectionProfile cp = SampleAppDB.GetSynchronizationProfile();
cp.DomainName = "default";

Example 2

You can set certificate information in SynchronizationProfile.
ConnectionProfile profile = MyDatabase.GetSynchronizationProfile();
profile.DomainName = "default";
profile.ServerName = "host-name";
profile.PortNumber = 2481;
profile.NetworkProtocol = "https";
profile.NetworkStreamParams =
"trusted_certificates=rsa_public_cert.crt";

Example 3

You can allow clients to compress traffic as they communicate with the Unwired Server by including "compression=zlib" into the sync parameters:
MyDatabase.DB.GetSynchronizationProfile().NetworkStreamParams = "compression=zlib;zlib_upload_window_size=12;zlib_download_window_size=12";