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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -