Taufan W
Dec 05, 2018
8:33 am

Non Master automatically left session

Hello,

We have problem participant (non master) suddenly left session when idle approximately 10 minute.

Is the participant session have timeout ? if yes, what api to set timeout? so participant do not left session automatically after 10 minute when idle

Thanks.

 

Similar topics

No similar topics found.
Jenna S.Samsung SEAP Moderator
Dec 05, 2018
8:01 pm

Hello Taufan,

I am not entirely sure what you are asking, but there is a setScreenTimeout API which allows you to control the amount of time it takes for the device to timeout. 

Best regards,

Jenna

Comments

Hello Jenna.S

Thank you for quick reply . Sorry if my question is not clear.

What i mean is. After Participant join session (who session is created by Master) using this API

SessionManageAgent sessionManager = (SessionManageAgent) agentManager.getAgent(AgentConstant.SESSION_MANAGING_AGENT);
sessionManager.joinSession(id, name, password, sessionAnnounceInfo, timeoutSecs);

Then the Participant idle approximately for 10 min. In my application suddenly participant will left the Session , without any calling API.

My Question:

1. Is this behaviour is normal?

2. If is this the normal behaviour. Where can i increase the timeout? to delay the participant left session when idle.

 

Thank you

 

 

;

 

 

Taufan WDec 06, 2018 at 1:44 am
Jenna S.Samsung SEAP Moderator
Dec 10, 2018
7:35 pm

Hello Taufan,

Could you please send device logs? Instructions for taking logs are here.

We suspect that the issue is due to the battery optimazation feature of the OS. When the application is in an idle state, packages from Master stop being received which eventualyl causes a timeout. A potential solution is to add the application to the Doze whitelist: https://developer.android.com/training/monitoring-device-state/doze-standby#support_for_other_use_cases.

Best regards,

Jenna