Start a new topic

Problems using Xamarin via Nuget

When I add the Kinvey android nuget it adds the Kinvey package as well.


The problem is that Resource.designer.cs has 1181 errors after adding the libraries.


Any suggestions?


Harshad,


The gentleman that posted on that thread ("Ed The Third") is our Engineer Edward, the owner of the Xamarin library.   I mentioned this issue to him earlier today and through some rubber duck debugging he managed to think out the issue.


Let us know if you run into anything else!


Thanks,


1 person likes this

I tried again and was still receiving errors.


Verified that Kinvey 1.4.0 and Kinvey-Android 1.4.0 were installed.


I just created a new Android project. Installed the Kinvey libraries and there are 1243 errors in the Resource.designer.cs file.


Tried to clean project and build but had the same results.

Thanks for letting us know Jason, 


We are looking into it now.   Can you confirm which version of Xamarin studio you're using and which platform you're targeting?


Thanks,

Good afternoon Jason,


I was hoping to get some more information from you.  


Our engineer Ed goes into a good amount of details about the library, how it's structured, and how it works over in this blog post:  http://engineering.kinvey.com/2015/03/11/cross-platform-mobile-libraries-with-c-extension-methods-and-xamarin/


That being said, I'm wondering if you did a clean and build before trying to compile?  What version of Android are you targeting?   It bears mentioning that you have to compile with 5.0, but you can target earlier platforms.  


Thanks,

Hello Harshad,


I just spoke with Ed about this and it does seem as though this issue is a bug in his code.  KinveyRef's will never be resolved on upload, so that is a bit of a flawed assumption.  The Xamarin library is lacking the ability to retrieve kinveyRef's as we are expecting it to.  This will be addressed in a future version of the SDK.


Thanks,

 Thanks Wani,

I found the solution.

KinveyXamariniOS.Push kinveyPush = new KinveyXamariniOS.Push(KinveyService.Instance);
kinveyPush.RegisterForToken();


it's working..

I create an Android application project.


Not sure whether it matters but I'm using the following:

Xamarin Studio

Version 5.8.3 (build 1)

Installation UUID: 61a8c087-cb19-4bf2-9698-8a78c6a9c361

Runtime:

 Mono 3.12.1 ((detached/0849ec7)

 GTK+ 2.24.23 (Raleigh theme)


 Package version: 312010003


Xamarin.Android

Version: 4.20.2.1 (Indie Edition)

Android SDK: /Users/jasonwarford/Library/Developer/Xamarin/android-sdk-macosx

 Supported Android versions:

  2.1 (API level 7)

  2.2 (API level 8)

  2.3 (API level 10)

  3.1 (API level 12)

  4.0.3 (API level 15)

  4.4 (API level 19)

  5.0 (API level 21)

Java SDK: /usr

java version "1.7.0_71"

Java(TM) SE Runtime Environment (build 1.7.0_71-b14)

Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)



I've verified that that the minSDK is set to api 21 (5.0) and target version is set to api 21.


I add the kinvey-xamarin-android nuget package with also adds the kinvey-xamarin and kinvey-utils.


Attempt to build.


It does not build and the errors are generated.


Here is a partial screen shot:


If I can provide any more information or details please let me know.


Thanks!

Damien,

I'm also facing the same issue. I checked version 1.5.1, 1.5.2 and 1.5.3, but no success till now.

Xamarin Stuido version is 5.9.5 (Enterprise Edition) and iOS 8.4 targeting version of device.

I'm trying below code

private Client myClient;
myClient = new Client.Builder ("kid_PeYFqjBcBJ","3fee066a01784e2ab32a255151ff761b").build ();
        await myClient.User ().LoginAsync ();
PFA

Thanks.

 

png
(211 KB)

Thanks.


I'll check it out again once the work is complete.

Hello Damien,
I am refer this document in Kinvey Xamarin iOS Push Notification.
http://devcenter.kinvey.com/xamarin/guides/push

myClient.Push().RegisterForToken();

I checked latest `kinvey xamarin nuget package` but `.Push()` method is not available.

Please correct me.

 

Hello Kinvey Team,

I want to update data in kinvey database. I used Rest API (PUT Method). but it is not working .
Same Authorization token in GET and POST method is working fine. Here is the Error :

{
  "error": "InsufficientCredentials",
  "description": "The credentials used to authenticate this request are not authorized to run this operation. Please retry your request with appropriate credentials",
  "debug": ""
}

 

Error : Unable to find a constructor to use for type KinveyXamarin.KinveyAuthResponse. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'username', line 1, position 12. On iOS device (iOS simulator works)

 

Jason,


We released Xamarin 1.4.0 today, which should address the resource issue that you had with this release.


It would be wonderful if you could give the library another shot.


Thanks,

Damien,
 
Refer this link  : Kinvey Xamarin iOS
It's working fine.

 

Damien,
Please refer this link  Xamarin with Kinvey database

I have ask my issue in stack overflow. please help me



Login or Signup to post a comment