Xamarin SDK

Hello Everyone,

I just want to start out by saying that i LOVE Backendless and have began using it in as many projects as i can and it has helped speed up development!

with that in mind, the only problem for me is that backendless does not offer an SDK for Xamarin projects, so i was always forced to use the REST Api, so to help myself and the community i decided to create an SDK using the rest api that is compitable with xamarin (i focused on android support, but it should work on IOS as well).

you can view the project and download the code (and submit changes and suggestions) at my git page located here

Please keep in mind that i am working on this in my spare time, but i will try to implement all the functions and features as quickly as possible.

Thanks!

Hi James,

What you’re doing is awesome! I am sure many people will find it useful.

I am not familiar with Xamarin, but I always thought it should be possible to reuse the code from our .NET SDK. I’d be happy to collaborate with you to make it happen. If you’re interested, please contact me directly at mark@backendless.com.

Cheers,
Mark

Hi Mark,

The backendless .NET SDK can be referenced, however when you call Backendless.InitApp (this example is using the Desktop SDK) you get the following exception

5-29 22:57:14.373 E/mono ( 8422): Unhandled Exception:
05-29 22:57:14.373 E/mono ( 8422): System.NotSupportedException: Specified method is not supported.
05-29 22:57:14.373 E/mono ( 8422): at (wrapper dynamic-method) System.Object:73516b37-7fb0-4647-b3e0-392e71227365 (intptr,intptr,intptr)
05-29 22:57:14.373 E/mono ( 8422): at (wrapper native-to-managed) System.Object:73516b37-7fb0-4647-b3e0-392e71227365 (intptr,intptr,intptr)
05-29 22:57:14.373 E/mono-rt ( 8422): [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Specified method is not supported.
05-29 22:57:14.373 E/mono-rt ( 8422): at (wrapper dynamic-method) System.Object:73516b37-7fb0-4647-b3e0-392e71227365 (intptr,intptr,intptr)
05-29 22:57:14.373 E/mono-rt ( 8422): at (wrapper native-to-managed) System.Object:73516b37-7fb0-4647-b3e0-392e71227365 (intptr,intptr,intptr)

which i believe is caused by a system.io call that is made either in backendless or WebOrb, i havent fully investigated the issue to find out though…

when you reference the Mobile SDK you get the following error during build

Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly ‘Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=’. Perhaps it doesn’t exist in the Mono for Android profile?
File name: ‘Windows.dll’
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute()

i would be happy to work with you to update the backendless sdk to make it work for xamarin, i just didnt want to do it and get in trouble, or have the work tossed out, i will send you an email tomorrow and we can discuss the issues.