chat - How to manage presence in background iOS+Pubnub .? -


i have created chat application using pubnub framework. have enable presence single channel , user subscribe channel. when close app (background mode) pubnub gives me timeout statement user.

but want show user online until user terminate app.

how manage scenario ?

please guide.

i've never used pubnub looking @ documentation it, see couple things possibly need do:

1) need pubnub delegate return "yes" method shouldrunclientinbackground.

or

2) can modify app's plist file needs run in background. this apple technote background tasks tells how it.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -