Limiting the amount of sending the presence while

2019-08-10 01:55发布

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条回答
【Aperson】
2楼-- · 2019-08-10 02:25

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

查看更多
登录 后发表回答