-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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.
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);
});
}
}
yurch
Metadata
Metadata
Assignees
Labels
No labels