Using Android SDK 1.1.0.22 Facing WebSocket Issue.

Bhuvneshvar

New Member
Flashphoner Android SDK 1.1.0.22 implement sdk for Playing Video Stream

Android Studio Logcat

WSS->C: {"message":"fail","data":[{"status":"FAILED","info":"Forbidden","apiMethod":"ConnectionStatusEvent"}]}
WebSocket connection closed. Code: 1000. Reason: Disconnected by error on REST method /connect. State: CONNECTED

My Connection Parameters this:
WSS<-C: {"message":"connection","data":"Connection{sipRegisterRequired=null, sipLogin='null', sipAuthenticationName='null', sipPassword='null', sipVisibleName='null', sipDomain='null', sipOutboundProxy='null', sipPort=null, sipContactParams='null', width=null, height=null, supportedResolutions='null', useProxy=null, useDTLS=null, mediaProviders=[WebRTC], authToken='null', status='null', clientVersion=null}CustomObject{custom={token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOnsiaWQiOjcwNDAsInJvbGUiOiJBZG1pblRlc3QiLCJwYXJlbnRfaWQiOiIxLDcwNDAsIiwidXNlcl90eXBlX2lkIjo1fSwiaWF0IjoxNjE3Njk5OTczfQ.nsRELI9EZlfjeFVunqbLKp8ZRU0Uc0g7WPoTm-RuOT0}}"}
 

Max

Administrator
Staff member
Good day.
WebSocket connection closed. Code: 1000. Reason: Disconnected by error on REST method /connect.
This means backend server returns 403 Forbidden on /connect REST hook. So if you use custom backend server, please check its logs.
If you do not use custom backend, perhaps you should not use custom token.
 

Bhuvneshvar

New Member
Hello Max Good Day !
Thanks For Replying...

I used custom backend but in IOS and Web Flashphoner Sdk Working fine, but in android i am facing this issue.

So can you tell me why this issue came?

Thanks
Bhuvnesvar
 
Top