Comments (8)
I created PR #6 to fix this. When (if 😄 ) that PR passes, you'll be able to download a ZIP that has a NuGet package that you can use in your app:
from mauihybridwebview.
I'll take another look, thanks for checking!
from mauihybridwebview.
@Eilon Sorry only just got time to pick this back up.
It's still an issue.
Looks like the check you added is looking at a different URL than the one set on MainFile -
The URL set on MainFile is MainFile="pdfjs/web/viewer.html?file=../../Dissertation.pdf"
Here is a repo - https://github.com/IeuanWalker/Maui.PdfViewer
from mauihybridwebview.
Also from your PR i couldn't see where you re-add the query parameters
from mauihybridwebview.
@IeuanWalker I have a new attempt to fix this issue: #17
This adds a new StartPath
property that you can set to something like somefile.html?a=b&c=d
. Please note that the MainFile
property must be set to a specific file, which is what gets loaded if there is no other path specified (e.g. a request to /
).
So in your case you could probably do something like this:
<hwv:HybridWebView ... MainFile="pdfjs/web/viewer.html" StartPath="?file=../../Dissertation.pdf" />
And that will load the view.html
file as the default file, but the initial navigation will go to the particular query string with the PDF file specified.
from mauihybridwebview.
Thanks @Eilon, will try and test it out now
Looks like its a different GitHub action than the last PR you built and no Artifacts were created
from mauihybridwebview.
@Eilon just tried a bunch of stuff but getting this error logged in the console from the JS, which prevents the PDFViewer from working -
"Uncaught ReferenceError: require is not defined", source: https://0.0.0.0/viewer.js (580)
Using the Standard Maui webview i dont get this error and the PDF loads fine.
I've done a bunch of search, but cant see why this error would appear as its still using the standard Android.Webkit.WebView
from mauihybridwebview.
Hi merged the PR, and the main build should produce artifacts in ~20min or so.
If you can create a repro project that uses the latest build and it still has the problem, please post that project and let me know so I can further investigate.
This control internally uses the same platform controls that the .NET MAUI WebView uses, but it configures it in a different way, so there could be some issues there that I will need to debug.
from mauihybridwebview.
Related Issues (20)
- Update project to require .NET 8
- Release latest version to nuget HOT 3
- allow passing of object and null from HybridWebView.SendInvokeMessageToDotNet("CallMeFromScript", ["msg from js", 987]); HOT 2
- Everyone switch to rbrundritt's repo HOT 6
- Fix possible hang in Proxy code for Android HOT 1
- Other proxy code cleanup tasks
- Typescript definitions HOT 2
- 0.0.0.0 referer causing issues HOT 2
- Enhancement Request: Support for Desktop Refresh without 404 Errors HOT 1
- "Link" trimming mode on Android removing/deactivating/breaking certain functions in my HTML/Javascript HybridWebView project?
- keyboard does not shown on textboxes HOT 5
- reload inside the control HOT 3
- Nothing happens when parameter contains escaped character HOT 1
- please create a option for HTTP or HTTPS url base HOT 3
- Future plans of HybridWebView ? HOT 3
- MauiHybridWebView causes Android app to crash with R8 enabled - Any fix to make it R8 compatible? Bug project included to demonstrate. HOT 1
- Need to modify the HybridWebView configuration (BEFORE initializing) on iOS/MacCatalyst to fix known base WebView issue ... Any solution? HOT 3
- HybridWebView ArgumentNullException when using HtmlWebViewSource instead of file HOT 4
- JSInterop performance vs Blazorwebview HOT 1
- HybridWebView is official in .NET MAUI 9! 🥳 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mauihybridwebview.