As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
@mark
After initiate client like this....
Client.Builder cb = new Client.Builder(app_key, app_secret);
Client KinveyClient = cb.Build(); PingResponse response = await KinveyClient.PingAsync();
return KinveyClient;
throwing null exception from here
DataStore<Comment> dataStore = DataStore<Comment>.Collection("TestComment", DataStoreType.SYNC);
did u able to add and push to kinvey ?
Hi,
Please try following code:
private async Task<Client> BuildClient()
{
Client.Builder cb = new Client.Builder(AppKey, AppSecret);
KinveyClient = cb.Build();
try
{
PingResponse response = await KinveyClient.PingAsync();
}
catch (Exception e)
{
}
return KinveyClient;
}
While calling this method please call it like this : await BuildClient()
Also, Make sure you are using the correct values of your appkey and appsecret. Please try this and let us know if this works for you.
Regards,
Abhijeet
Hi Mark,
You will have to initialize the created client to something. E.g. please look at the code provided here. You will notice kinveyClient is assigned the value after the initialization.
Client kinveyClient = builder.Build(); //like this
After this please check if your connection is working with your backend. You can use Ping for that. After this please perform login of any one user and then check if the user is logged in. Please let us if this helps.
Regards,
Abhijeet
Hi, thanks for the answer.
With this code:
private async Task<Client> BuildClient()
{
Client.Builder cb = new Client.Builder(app_key,
app_secret)
//.setFilePath
(NSFileManager.DefaultManager.GetUrls
(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomain.User)
[0].ToString ())
.setFilePath(DependencyService.Get<ISQLite>().GetPath())
.setOfflinePlatform(DependencyService.Get<ISQLite>().GetConnection());
kinveyClient = cb.Build();
try
{
PingResponse response = await
kinveyClient.PingAsync();
}
catch (Exception e)
{
// an error has occured
}
return kinveyClient;
}
I never reach "PingResponse response =....", but also never catch an exception on the outer function calling "BuildClient"
What is the problem? I used the same key, secret, user and password as before in the sample provided (books)
Where by the way the answer you gave here seemed not nessessary .
Thanks again
Of course I added the kinvey nuget package, which depends and
automatically added the SQLite packages. It seems - although I do
not catch the error - the error is within sql.
What are my options?
mark
//.setFilePath (NSFileManager.DefaultManager.GetUrls (NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomain.User) [0].ToString ())
.setFilePath(DependencyService.Get<ISQLite>().GetPath())
.setOfflinePlatform(DependencyService.Get<ISQLite>().GetConnection());