Stringee SDK is designed to support multi-device. Users can log in on multiple devices. When they have a call, the onIncomingCall(StringeeCall stringeeCall) method of StringeeConnectionListener is invoked on all devices. If the call is handled (ringing, answer, reject, hang up) on a specific device, others can get the call's states by implementing the onHandledOnAnotherDevice(StringeeCall stringeeCall, StringeeCall.SignalingState signalingState, String desc) of StringeeCallListener:
@Override
public void onHandledOnAnotherDevice(StringeeCall stringeeCall, StringeeCall.SignalingState signalingState, String desc) {
}
signalingState specifies the call's state on another device:
switch (signalingState) {
case RINGING:
// The call is ringing on another device.
break;
case ANSWERED:
// The call is answered on another device.
break;
case BUSY:
// The call is rejected on another device.
break;
case ENDED:
// The call is ended on another device.
break;
}