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

Print fails to display document preview intermittently with iOS 17 upgrade #301

Open
shekhartupe opened this issue Oct 21, 2023 · 6 comments

Comments

@shekhartupe
Copy link

We are using this plugin in an ionic app. With iOS 17 upgrade, we see this behavior where print menu fails to display the preview intermittently. Attached screenshot of the behavior and console logs from app.

Screenshot 2023-10-21 at 4 19 28 PM

preview-failed.txt
preview-success.txt

Any guidance will help.

@shekhartupe
Copy link
Author

Just to add, if I retry printing same file again and again, sometimes it will display the preview.

@shekhartupe
Copy link
Author

Anyone else facing similar issue or seen this in past?

@kirtipriya
Copy link

My iPad app supports only landscape orientation. The moment print button is clicked in the app , the app crashes with the error :
*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [UIPrintPanelNavigationController shouldAutorotate] is returning YES'

@davequested
Copy link

Anyone else facing similar issue or seen this in past?

@shekhartupe We're seeing exactly the same problem. Did you get to the bottom of it?

@shekhartupe
Copy link
Author

@davequested yes, in my case I am writing a file locally and then printing the same. I had file check api to ensure file was created and then only trigger print api. This worked well before iOS 17.x. With 17.x I observed even though file was created, it was not released to open and hence I added a delay of 1 sec after file check to trigger print api. This workaround resolved issue for me with this plugin.

@davequested
Copy link

davequested commented Feb 26, 2024 via email

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

3 participants