Once the certificate property is set, use the beginOnlineLogin API with no parameters (do not use the beginOnlineLogin API with username and password).
[MyPackage_MyPackageDB beginOnlineLogin]; // Handle login response [MyPackage_MyPackageDB subscribe];