Sharp.Xmpp icon indicating copy to clipboard operation
Sharp.Xmpp copied to clipboard

Compatibility with xamarin forms?

Open axcl opened this issue 7 years ago • 3 comments

I am creating a chat application. I have successfully added Sharp.XMPP library using Nuget in Xamarin Forms project using Shared Assets cause i came to know that PCL is not supported from one the post on stackoverflow. But i can not use library in my shared code cause i can not reference it there.

axcl avatar Nov 12 '17 13:11 axcl

you can use sharp.comp in Xamarin.Android.

On 12-Nov-2017 6:38 pm, "Ankit" [email protected] wrote:

I am creating a chat application. I have successfully added Sharp.XMPP library using Nuget in Xamarin Forms project using Shared Assets cause i came to know that PCL is not supported from one the post on stackoverflow. But i can not use library in my shared code cause i can not reference it there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pgstath/Sharp.Xmpp/issues/62, or mute the thread https://github.com/notifications/unsubscribe-auth/AAj3GaA9h3XLBKRpSnHX-L3Haz_1CsCbks5s1u3SgaJpZM4Qa3yG .

Harisankar avatar Nov 13 '17 06:11 Harisankar

Then how am i able to use single code base for all platforms.

axcl avatar Nov 13 '17 09:11 axcl

@axcl , That library won't run inside a PCL, I faced that problem when I tried to use, but that will not be a problem in a Shared project. once you create a Shared project, you can just create a ChatService.cs and handle the chat logic. There others suggestions like create two individual PCL for Android and iOS. but in my case just the share project was enough. be advise though lots of example on the community for xamarin.forms are made on PCL. that was one of the drawbacks. a part from that, I think that library will be useful. cheers...

claudiocleberson avatar Nov 21 '17 13:11 claudiocleberson