Limiting the amount of sending the presence while integrating Quickblox SDK

*爱你&永不变心* 提交于 2019-12-11 11:18:48

问题


Let me try to explain clearly,

I'm using the QucikBlox SDK for Video calls between two users. It's working great.

But, I need to send the presence of user to QB server for every 30 seconds.

[NSTimer scheduledTimerWithTimeInterval:30 target:[QBChat instance] selector:@selector(sendPresence) userInfo:nil repeats:YES];

This may consume some network connection data of the user. Is there any way to limit this method call?(I don't know whether I'm explaining correct.If any clarifications - please ask)

Will it affect the video chat, if I don't call this method for every 30 seconds?

Please suggest, I'm new to this SDK.


回答1:


You can try set it to 60 or 90. 90 is a max possible value.

Anyway this won't consume any network connection data, because it's a very very small ammount of the data we send here



来源:https://stackoverflow.com/questions/25790016/limiting-the-amount-of-sending-the-presence-while-integrating-quickblox-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!