robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

XMMP Back Ground Socket #1226

Open mahesh-reddy-ios opened 1 year ago

mahesh-reddy-ios commented 1 year ago

Hi, @robbiehanson

I'm working on an app that uses an XMPP Frame Work.

Right now i am using xmppStream.enableBackgroundingOnSocket = YES; ... till Xocde 15 it is working Fine.

But when Xcode Upgrade to 16.0 the app is getting crashed and it is giving hint as xmppStream.enableBackgroundingOnSocket = YES; will not work from iOS OS 11.0 .

The app stops working when the app goes into the background when i am using xmppStream.enableBackgroundingOnSocket = NO;

Is there any way to keep this working in the background? Ideally we'd like to be able to receive an XMPP message and if the app is not in the foreground, we'd post a local notification.

Thanks Mahesh

Screenshot 2023-04-19 at 11 25 41 AM