Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated Call-kit Instances #19

Open
ghost opened this issue Jul 31, 2017 · 2 comments
Open

Duplicated Call-kit Instances #19

ghost opened this issue Jul 31, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 31, 2017

Hello, fellow partners, I've been using this plugin for a while now, and it works flawlessly. The only issue I've encountered was when I refreshed my app (hot code push), call-kit instances will be duplicated.

I'm using Meteor 1.5 and the latest version of the plugin.

Below is the code I'm rocking with. I've also attached a video sample, showing the issue.

https://vimeo.com/227741568

function onDeviceReady() {
   callUUID = '';
   callKit = null;

   function callChanged(data) {
     console.log("onCallChanged: " + JSON.stringify(data));
   }

   function audioSystem(data) {
     console.log("onAudioSystem: " + JSON.stringify(data));
   }

   callKit = new CallKit();
   callKit.register(callChanged, audioSystem);

   incomingCall = function() {
     this.callKit.reportIncomingCall('Incoming call', {
       supportsVideo: false,
       supportsGroup: false,
       supportsUngroup: false,
       supportsDTMF: false,
       supportsHold: false
     }, function(uuid) {
       this.callUUID = uuid;
       console.log('call reported. returned uuid: ' + uuid);
     });
   }
}
@abardik
Copy link

abardik commented Feb 20, 2018

@NickMendes Did you solved this issue? I even tried to delete and reinstantiate CallKit every time when new call arrived and ended, but it not works.

@ghost
Copy link
Author

ghost commented Feb 20, 2018

No sadly :(, ill start working with Callkit again soon. If I figure any solution, ill post here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant