WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 91 forks source link

Error with iOS 12 #52

Open BorntraegerMarc opened 6 years ago

BorntraegerMarc commented 6 years ago

When I call the plugin like this:

cordova.plugins.CordovaCall.sendCall(
            'Mami',
            () => {
                console.log('XXX success');
                // simulate your friend answering the call 5 seconds after you call
                setTimeout(() => {
                    cordova.plugins.CordovaCall.connectCall(
                        () => {
                            console.log('XXX CONNECT CALL sucess');
                        },
                        error => {
                            console.log('XXX CONNECT CALL ERR');
                            console.log(error);
                        }
                    );
                }, 5000);
            },
            err => {
                console.log('XXX error');
                console.log(err);
}

I get the following error on my iPad with iOS 12: AVAudioSessionPortImpl ValidateRequiredFields: Unknown selected data source for Port Speaker

D-Marc1 commented 6 years ago

Thank you for bringing this to our attention. Since iOS12 hasn't been released yet, it's not truly an issue yet, but it's good to know that this should be fixed before it does.

BorntraegerMarc commented 6 years ago

Well, iOS is always released mid-september. So it's not so far away :) Anyway, thanks for keeping it on your radar

BorntraegerMarc commented 6 years ago

Or maybe it's because I'm using an iPad. Hard to say. Anyone experienced the same error?

BorntraegerMarc commented 6 years ago

Because I see the log XXX CONNECT CALL sucess but I do not see the actual UI coming up on my iPad

BorntraegerMarc commented 6 years ago

now I noticed that no UI is shown at all if I call cordova.plugins.CordovaCall.connectCall even with an iPhone iOS 11. The screen doesn't show unless I kill my app and then for a brief moment I see the "call failed" screen

BorntraegerMarc commented 6 years ago

any idea why that happens with the latest version @D-Marc1 ?

D-Marc1 commented 6 years ago

Sorry, but we don't have an iPad to test this out on.

Try following the example, here. There's no reason why it shouldn't work on an iPhone with iOS 11.

BorntraegerMarc commented 6 years ago

This is what I'm getting with the code above: ezgif com-video-to-gif 5

In the logs I do see the two success logs: XXX success and XXX CONNECT CALL sucess

is it maybe a problem that I'm using the plugin with ionic?

D-Marc1 commented 6 years ago

Sorry, there's not much we can do to help you, as it works for us. Check out this issue for reference #34

BorntraegerMarc commented 6 years ago

Thanks for the reference. I see you only tested it with receive call based on the conversation on the other GitHub issue. Which works as expected (also for me)

But do you also get the expected behavior with send call?