Maulik
Maulik

Reputation: 19418

QuickBlox: How to keep alive app in background?

I am using QuickBlox SDk for chat app. When app goes to background mode, I could not receive chat messages. So I want to keep alive app in background mode.

I know the way to keep alive app in background for VOIP based app.

Also I got a useful link for XMPP to support background mode. But for that we need to interact with XMPP framework but with QuickBlox SDK we don't need to directly interact with XMPP frameworks.

So, What is the possible way to keep alive app in background using QuickBlox SDK ?

Upvotes: 0

Views: 737

Answers (1)

frankWhite
frankWhite

Reputation: 1542

You will be online in XMPP while your device send XMPP presence.

[[QBChat instance] sendPresence];

After 90 seconds from last presence session is closed.

I think you can create background task with presence timer (but this will work for 10 minutes. After that time will spend you can try recreate background task for next 10 mins and etc., but I don't check if this work). This is Perform finite-length tasks from Ray's site.

Upvotes: 1

Related Questions