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

[BUG] cordova-plugin-webview-proxy doesn't play nice with navigator.mediaDevices in a cordova ios app #27

Open
ghevge opened this issue May 30, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ghevge
Copy link

ghevge commented May 30, 2023

Describe the bug
cordova-plugin-webview-proxy doesn't play nice with navigator.mediaDevices in a cordova ios app.
when cordova-plugin-webview-proxy is configured to work in an ios app, navigator.mediaDevices will always return undefined.
The source of this problem are the 2 entries in the config.xml:

<preference name="scheme" value="app" />
<preference name="hostname" value="testapp"/>

If i'll remove these 2 entries, navigator.mediaDevices will start working, but the cordova-plugin-webview-proxy will stop working

To Reproduce
Steps to reproduce the behavior: mentioned above

Expected behavior
I would expect cordova-plugin-webview-proxy not to impact other functionalities

@ghevge ghevge added the bug Something isn't working label May 30, 2023
@ghevge
Copy link
Author

ghevge commented May 30, 2023

Found a workaround, which consists in setting hostname = localhost.

<preference name="scheme" value="app" />
<preference name="hostname" value="localhost"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant