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

Error with iOS 12 #52

Open
BorntraegerMarc opened this issue Aug 10, 2018 · 10 comments
Open

Error with iOS 12 #52

BorntraegerMarc opened this issue Aug 10, 2018 · 10 comments

Comments

@BorntraegerMarc
Copy link

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
Copy link
Contributor

D-Marc1 commented Aug 10, 2018

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
Copy link
Author

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

@BorntraegerMarc
Copy link
Author

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

@BorntraegerMarc
Copy link
Author

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

@BorntraegerMarc
Copy link
Author

BorntraegerMarc commented Aug 14, 2018

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
Copy link
Author

BorntraegerMarc commented Aug 14, 2018

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

@D-Marc1
Copy link
Contributor

D-Marc1 commented Aug 14, 2018

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
Copy link
Author

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
Copy link
Contributor

D-Marc1 commented Aug 14, 2018

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

@BorntraegerMarc
Copy link
Author

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?

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

2 participants