pgstath / Sharp.Xmpp

Sharp.Xmpp is looking for a maintainer! Unfortunatelly I do not have currently the time needed to maintain the library. Luckily a small but vibrant community has evolved around Sharp.Xmpp. If you would like to be the project's maintainer please sent an email to pgstath@gmail.com. This should include issues, tickets and commits that you have done for Sharp.Xmpp or other similar project. Sharp.Xmpp is a multiplatform, Windows and Android, .NET XMPP client assembly.Sharp.Xmpp supports IM functionality & a variety of XMPP extensions, is simple and is extensively tested against Android Xamarin. It is a fork of the currently frozen excellent S22.Xmpp project. Sharp.Xmpp will be at the FOSSDEM 2016 Real time DevRoom!
Other
84 stars 51 forks source link

Xamarin.iOS #24

Open dodyg opened 8 years ago

dodyg commented 8 years ago

Is there any fundamental issue that would make this library not working on iOS? I am just curious. Right now I am thinking of adopting Sharp.Xmpp for a messaging functionality for my Xamarin Android/iOS app.

ilber commented 8 years ago

I'm interested too... I want to use this library in a cross platform app and in iOS seems not working.. Any news? Will someone give us any idea of what is going wrong?

pgstath commented 8 years ago

Hi both.While it will compile and run I have not tested it in iOS. However, the fundamental problem is with iOS and XMPP: if its not an VoIP app iOS will tear down the background TCP connections (when the app is going to the background), thus messages will not be delivered. A solution would be to implement XEP 0365 Push Notifications, XEP-0365 currently not supported

gviddy commented 8 years ago

I would like to look into this and get it going on iOS. Where in the code would be the best place to start ?

pgstath commented 8 years ago

I do not think that you will have a problem to run it. The problem will be that when the application leaves the foreground, the TCP connnections in the background will be closed by the OS.

ilber commented 8 years ago

We have already started to integrate it in our app and it seems working fine. Of course you need to take care of the situation when the app goes in background but enabling archives and push on server side you will not loose any message. @pgstath thank you for your effort on creating this library.

pgstath commented 8 years ago

Thx, nice to hear good news like this!!

daspuru commented 7 years ago

Hello! I am trying to use Sharp.Xmpp in a Xamarin.iOS project. Added the NuGet Package, and then tried to use the code and I can not add any "using" statement that recognize the XmppClient class.

@ilber , can you help me with this?

Thanks.

ilber commented 7 years ago

@daspuru I'm not using the package since there is no library for iOS or Android. I just created 2 Projects (iOS Library and Android Library) that link all the files from the main one. Then just reference this projects into your app.