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

Support for mobile devices #112

Open
Messa1 opened this issue Jun 16, 2021 · 4 comments
Open

Support for mobile devices #112

Messa1 opened this issue Jun 16, 2021 · 4 comments

Comments

@Messa1
Copy link

Messa1 commented Jun 16, 2021

Expected behaviour

Printing same as on desktop device.

Observed behaviour

I test it on android chrome. And it would print the whole page.

Steps to reproduce the issue

Open chrome and test your script :)

Browser and operating system

android chrome

@CitizenOfRome
Copy link

See #71 (comment)

P.S. It should work as expected in Chrome 61+, it was broken due to a browser bug
There's no js based print support on Firefox for Mobile yet - a workaround is to use the iframe: false option and ask your users to manually hit print from the firefox options on the print window that opens up

Anecdotally: It works for the most part on a Chrome 91 / Android 10 device
Any PRs to fix/improve this are of course welcome, as are pointers on what could be changed to make it work flawlessly on various mobile devices

@jumaskow
Copy link

jumaskow commented Feb 2, 2022

Same problem for me. When printing from Google Chrome on Android, the whole page gets printed. When I switch from iframe: true to iframe: false, it won't even load the printing preview.

@M4x28
Copy link

M4x28 commented Oct 4, 2023

Same problem for me. When printing from Google Chrome on Android, the whole page gets printed. When I switch from iframe: true to iframe: false, it won't even load the printing preview.

Same for me, did you found any solutions?

@jumaskow
Copy link

jumaskow commented Oct 5, 2023

Long time ago... I think i switched to "printjs" or "printThis".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants