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

Android 7.0 Google Chrome 102.0.5005.78 Webview Broken - Xamarin App #106

Open
jostar911 opened this issue Jun 1, 2022 · 1 comment
Open

Comments

@jostar911
Copy link

Hi,
I'm using XForms9Patch.PrintService and Chrome's latest update version 102 is not displaying data on the webview. Any clues and solution to this error?
Example code:

        private async Task PrintCodes()
        {          
            //Set up Razor template
            var printTemplate = new Printing.PrintTemplate();

            //Set the model property
            printTemplate.Model = codesModel.ToList();

            //Generate the HTML
            var htmlString = printTemplate.GenerateString();

            if (PrintService.CanPrint)
            {
                //print html format data
                await htmlString.PrintAsync("Codes");
            }
        }

Thanks,

@smalgin
Copy link
Contributor

smalgin commented Dec 4, 2022

Hi! I forked the pdf service from f9p for my own reasons…. And I found the answer! The webview construction and initialization must be on the main thread! Lmk if it works for you

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