xamarin.forms integration of zendesk chat - xamarin.ios

I am new to Xamarin development. And, currently I want to integrate the zendesk chat.
As per my RnD and after contacting Zendesk support center they are not supporting the xamarin yet.
Currently they have sdk for native android and ios respectively.
I need you expertize people's guidelines for the development regarding what scenario i should follow to achieve the same using xamarin.forms :
Integrate the both platforms native sdk's for xamarin in each platform and later call it from Xamarin.Forms by adding platform dependency using Device.OnPlatforms . ( I am not sure about this scenario, please suggest)
Create a jar/aar of Zendesk SDK and use it using binding library concept.( I am not sure it will be accessible into ios platform)
Kindly, suggest me the best approach for this.
Any sample reference for suggestions will be grateful.
Thanks in advance.

I think it's a mix of number 1 and number 2 (and a little extra).
You will need to create the Binding libraries for both iOS and Android. Xamarin has a good documentation of how to do this: Android/Java and IOS/Objective-C
Then you can go either with Xamarin Native (Xamarin.iOS and Xamarin.Android projects) adding the binding to each project. Or you can go with Xamarin.Forms but this will require a little more work as you will need to create an interface of the methods you want to use from the SDKs (most likely all off them) and create the implementations for each platform.
Let's say your interface is called: ISendeskSdkService you will need at least two implementations: ISendeskSdkServiceiOS and ISendeskSdkServiceDroid. These implementations will be on the Platform project and they will be calling the binding libraries you just created and added to each of these projects.
You will be developing your app on top of your interface and which implementation to use will be set on the application load when you are configuring your IoC.
Hope this gives you an idea.

Related

Use NodeJs in Kotlin Android Project to use Stream.io Feed Api?

Would it be advisable to some how integrate NodeJs with a Kotlin project to use Stream.io Feed API? From what I understand there currently isn't any support for Kotlin/Android regarding the Feed capability. I currently have an iOS app that uses Stream and would like to connect my Android users to the community also. If this isn't the right way to thin about this, is there a better way to go about this?
https://github.com/getstream/stream-java provides java integration for feeds. See its io.getstream.cloud package to leverage it in android.
Later this year, more modern and android specific SDK will be developed too.

Use MongoDB Stitch as backend for Xamarin Application

Is their any way to use mongodb stitch as backend for Xamarin Application?
Currently there are JavaScript, iOS (Swift), and Android (Java) SDKs to connect to Stitch. We've also open sourced our SDKs here, so there is the opportunity to build on what we've done as well. While there isn't a C# SDK for working with Xamarin at the moment, we have plans to investigate this later and are happy to help anyone interested in contributing.

Should the REST Services consumed by the Xamarin.Android app be PCL enabled

I am trying to consume JSON based REST services for developing a Xamarin.Android application. Now in this case the services are already developed and hosted and ready to be used. I am looking to consume them from the Xamarin.Android application.
We are also planning to develop Xamarin.iOS app and consume the same REST services.
Can anyone help me to know in this case whether the REST services should be PCL enabled.
It is possible to do this from the PCL, and I recommend it. As often as possible you should move any code you can to the PCL. Anything not in the PCL means you have to code it twice, which means more likely to have bugs or discrepancies. Stuff that should be OS specific is View layout and utilizing OS specific libraries.

Visioglobe map and Metaio AR with Xamarin

I want to use these tools with Xamarin
Visioglobe 3d maps
Metaio SDK for Augmented reality
they are working well with native android and iOS apps.
And I would like to know if we can use these tools with Xamarin, Does xamarin support them?
And how to integrate a Xamarin app with them.
[DISCLAIMER] I'm an engineer at Visioglobe.
You've probably moved on already, but I'll reply anyway in case someone else is interested.
To this date, there is no indication, either way, that Visioglobe's VisioMove SDK will work with the Xamarin platform.
If you have already chosen Visioglobe for your application's map, then I would suggest strongly to use the traditional IDE's to reduce any risk of potential conflicts.

Using RestSharp cross-platform using Xamarin

I'm using Xamarin to develop a cross-platform mobile app. To communicate with our REST-service I'd like to create a shared project between these platforms to have a service access layer. The problem is that RestSharp has different projects for different platforms. How can I create a shared project while still using the platform-specific libraries. Does that make sense?
I tried this exact thing a few months ago. I ran into problems when trying to use my "Service Library" on WP8 because of the RestSharp dependency. If I had it to do over, I would do just like the link that #user1010710 mentioned in the comment and use HttpClient.

Resources