vitalii-vov / Maui.PDFView

This repository contains a control for .NET MAUI and allows you to display PDF in View
MIT License
27 stars 4 forks source link

Getting Black screen on ios #13

Open vikashhd opened 3 days ago

vikashhd commented 3 days ago

Team, we are getting black screen while opening on ios but it is running fine on Android devices. Maui.PDFView : Latest Version Stack Trace : Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: 'IsHorizontal' property not found on 'Microsoft.Maui.Controls.Xaml.ReferenceExtension', target property: 'Microsoft.Maui.Controls.Button.Bound' Thread finished System.ObjectException : Position 27:5. Can not find the object referenced by PdfView

After updating CommunityToolkit.maui to latest version, now it is working in debug mode of ios but still not working in release mode (Testflight).

vitalii-vov commented 1 day ago

Hello, I am using this library in my projects and could not reproduce the error. What version of the library do you have?

vikashhd commented 1 day ago

Hi, Latest version of library am using. I upgraded to .net 9 still problem was there. But after removing property IsHorizontal right now we are able to open pdf files but getting some different issue related to handler. App is crashing randomly while opening or closing. Also while closing we are getting PlatformView cannot be null exception. Our platform is Maui Hybrid Blazor and to open pdf we are having xaml page and for closing we are using await Navigation.PopModalAsync();

vitalii-vov commented 1 day ago

I haven't tested this library on Blazor, as I didn't have such a task, so I can't guarantee its work on this technology. Perhaps you should make a fork of the library and debug it together with your project in order to implement Blazor support on your side.