-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
HybridWebView
- RawMessageReceived
event is not firing in .NET MAUI 9 RC1
#24705
Comments
Sample project to simulate the issue dotnet/maui#24705
Here's the link to the repository with a sample project to simulate this issue. |
This issue has been verified using Visual Studio 17.12.0 Preview 2.0(9.0.0-rc.1.24453.9 & 9.0.0-preview.7.24407.4). Can repro on Windows platform. On 9.0.0-preview.7.24407.4 works fine. |
@Eilon thoughts? |
Hi @egvijayanand , it's probably because the HybridWebView.js file is out-of-date. It changed significantly from preview7 to rc1. In your app replace the contents of this file: https://github.com/egvijayanand/maui-issue-24705/blob/main/src/HwvApp/Resources/Raw/wwwroot/scripts/hwv.js |
There's no mention about the modifications in the changelog? Kindly include it here. https://github.com/dotnet/core/blob/main/release-notes%2F9.0%2Fpreview%2Frc1%2Fdotnetmaui.md And also suggest to pack the associated JS as an embedded resource like Blazor with a naming convention and a reference can be in the HTML file, so that it need not be looked into for every version. |
Thanks @egvijayanand , I sent a PR here to update the notes: dotnet/core#9501 For embedding the JS file, that is unfortunately out of scope for .NET 9 right now but definitely something we'll look into in the future. |
Cool, the release notes got updated. #24730 - Logged as a feature request to track the JS as an embedded resource. |
Description
HybridWebView
-RawMessageReceived
event is not firing in .NET MAUI 9 RC1.This worked fine in .NET MAUI 9 Preview 7.
Note: Add the RC1 version in the Version with bug field and Preview 7 version in the Last version that worked well field.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/egvijayanand/maui-issue-24705
Version with bug
9.0.0-rc.1.24453.9
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI.
Last version that worked well
9.0.0-preview.7.24407.4
Affected platforms
Windows, I was not able test on other platforms
Affected platform versions
Windows SDK 10.0.19041
Did you find any workaround?
Nope.
Relevant log output
The message is logged with one character per line in the Web Dev Tools Debug console. It seems some dev debugging piece checked in.
The text was updated successfully, but these errors were encountered: