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

Calling window.print() does not work #1025

Open
veelci opened this issue Sep 25, 2023 · 0 comments
Open

Calling window.print() does not work #1025

veelci opened this issue Sep 25, 2023 · 0 comments

Comments

@veelci
Copy link

veelci commented Sep 25, 2023

Feature Request

Enable the usage of window.print() when using the inappbrowser plugin for iOS and Android.

Motivation Behind Feature

The application I'm working on allows users to print the page using window.print(). This works when accessing the application via a web browser, but doesn't work when accessing the application via the inappbrowser plugin.

I'm not entirely sure why this doesn't work on iOS, but Android has chosen not to implement window.print in WebView.

Feature Description

I think the best way to go about this is to override window.print inside of the iOS and Android implementations of the inappbrowser plugin. I've been able to get window.print working on Android via this strategy. I think something similar may be possible in iOS.

The main downside I see to this is that this would override the iOS and Android implementations of window.print if they are ever implemented. In the case of Android, that seems unlikely to ever happen.

veelci added a commit to aboveproperty/cordova-plugin-inappbrowser that referenced this issue Sep 25, 2023
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