opentok / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
MIT License
30 stars 80 forks source link

Incoming real call after session ended - phone is not ringing #162

Open Shtibel opened 5 years ago

Shtibel commented 5 years ago

Bug Report

Testing platform

Android, Ionic, cordova

Current behavior

After an openTalk session has ended, If I get a real incoming call the call is silent, What I mean is that the phone is not ringing, it is like a waiting call. Only if I close the application I get a ringing sound for incoming calls.

Steps to reproduce

Create a session > join a session with other users > receive a regular phone call > you will see that you will receive the call as a waiting call with no ringing sound. > close the session / exist the session and leave the application open > receive a regular phone call > you will see that you still receive the call as a waiting call. > close the application > receive a regular phone call > you will see that you will receive the call with a ringing sound.

Example Project

https://github.com/opentok/opentok-ionic-samples

What is the current bug behavior?

Even after closing/existing a session when I receive a regular phone call I don't get it with a ringing sound but as a waiting call

What is the expected correct behavior?

After closing/existing a session when a regular call is received it needs to be as a normal call with ringing sound and not as a waiting call

Relevant logs and/or screenshots

I uploaded a screen cast video that shows the problem, see this video: https://www.youtube.com/watch?v=kDU1EQlg60k

msach22 commented 5 years ago

@Shtibel Apologies for the delay on this - thanks for filing this issue. I have a couple of quick questions. Is this happening with the latest cordova plugin version (3.4.3 using OpenTok Android 2.15.3)? Are you able to reproduce this with all devices or is this specifically for a device type?

msach22 commented 5 years ago

@Shtibel I believe it's device specific because I just ran the Basic Video Chat on a OnePlus 6T with Android 28 and wasn't able to reproduce this issue.

Shtibel commented 5 years ago

Hi @msach22 this is happening with the: 3.4.2 plugin version On an LG V10 with: android 6.0

p.s. we are not able to run our application with the 3.4.3 version at all...

msach22 commented 5 years ago

@Shtibel Hmm, thanks for sharing. I'll run it on Android 6 and update you. Could you please share why you're unable to run 3.4.3?