You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Webview2 version 1.0.2957.106 with C# and load a web site over https which use push notifications.
It works correctly with Chrome, Firefox and Edge browsers but not with WebView2.
On the Javascript side the notifications are initiated by registering a service worker with
If the permissions are set as e.State = CoreWebView2PermissionState.Default; no popup asking the user for notification permission is displayed (for camera and mic permissions a popup is shown).
I assume, that the allowance of the notification permission by code does not work correctly since no popup is displayed and no user interaction is requested (the Edge browser does not show a popup neither, the notification permission must be set here interactively to make the web site work)
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
1.0.2957.106
SDK Version
1.0.2957.106
Framework
Winforms
Operating System
Windows 11
OS Version
26100.2894
Repro steps
Please see descritpion under "What happened".
The web site which is called is https://test.mypoi3d.com.
The notification is initiated after a login (if needed i can create one for you)
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
I use Webview2 version 1.0.2957.106 with C# and load a web site over https which use push notifications.
It works correctly with Chrome, Firefox and Edge browsers but not with WebView2.
On the Javascript side the notifications are initiated by registering a service worker with
navigator.serviceWorker.register
this works correctly
The subscrition to push notifications with
causes the exception AbortError Registration failed - push service error
Before the subscription is called, a check for the permissinon is made by
if (Notification.permission === 'granted')
On the C# side there is a permission request callback which allows the notification request
I have reset all permissions to default when the page is loaded by
If the permissions are set as
e.State = CoreWebView2PermissionState.Default;
no popup asking the user for notification permission is displayed (for camera and mic permissions a popup is shown).I assume, that the allowance of the notification permission by code does not work correctly since no popup is displayed and no user interaction is requested (the Edge browser does not show a popup neither, the notification permission must be set here interactively to make the web site work)
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
1.0.2957.106
SDK Version
1.0.2957.106
Framework
Winforms
Operating System
Windows 11
OS Version
26100.2894
Repro steps
Please see descritpion under "What happened".
The web site which is called is https://test.mypoi3d.com.
The notification is initiated after a login (if needed i can create one for you)
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: