Web-Push working in Edge but not in WebView2

%3CLINGO-SUB%20id%3D%22lingo-sub-1672634%22%20slang%3D%22en-US%22%3EWeb-Push%20working%20in%20Edge%20but%20not%20in%20WebView2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1672634%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20Microsoft%20Edge%20(Chromium)%20Version%2085.0.564.51%20(Official%20build)%20(64-bit)%20and%20the%20web-push%20example%20%3CA%20href%3D%22https%3A%2F%2Ftests.peter.sh%2Fnotification-generator%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftests.peter.sh%2Fnotification-generator%3C%2FA%3E%20works%20ok%20(after%20allowing%20notifications%20from%20that%20site)%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Notification%20Generator%20_%20Peter.sh-2020-09-18%2007_15_21.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F219439i77DC8B76F1E451AF%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Notification%20Generator%20_%20Peter.sh-2020-09-18%2007_15_21.png%22%20alt%3D%22Notification%20Generator%20_%20Peter.sh-2020-09-18%2007_15_21.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Notification%20Generator%20_%20Peter.sh%20and%201%20more%20page%20-%20Personal%20-%20Microsoft%E2%80%8B%20Edge-2020-09-18%2007_33_49.png%22%20style%3D%22width%3A%20470px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F219442i296264A3B58D8358%2Fimage-dimensions%2F470x17%3Fv%3D1.0%22%20width%3D%22470%22%20height%3D%2217%22%20title%3D%22Notification%20Generator%20_%20Peter.sh%20and%201%20more%20page%20-%20Personal%20-%20Microsoft%E2%80%8B%20Edge-2020-09-18%2007_33_49.png%22%20alt%3D%22Notification%20Generator%20_%20Peter.sh%20and%201%20more%20page%20-%20Personal%20-%20Microsoft%20Edge-2020-09-18%2007_33_49.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%26lt%3B--%20Click%20here!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22-2020-09-18%2007_24_37.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F219443i19B42755CAB5EC7E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22-2020-09-18%2007_24_37.png%22%20alt%3D%22-2020-09-18%2007_24_37.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3EHowever%2C%20when%20using%20WebView2%20and%20the%20WebView2APISample%20from%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-edge%2Fwebview2%2Fgettingstarted%2Fwin32%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-edge%2Fwebview2%2Fgettingstarted%2Fwin32%3C%2FA%3E%20you%20get%20informed%20that%20permissions%20are%20required%20(first%20image%20above)%20but%20nowhere%20is%20there%20a%20button%20to%20grant%20such%20a%20permission.%3C%2FP%3E%3CP%3EIs%20there%20a%20solution%20to%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Visitor

Using Microsoft Edge (Chromium) Version 85.0.564.51 (Official build) (64-bit) and the web-push example https://tests.peter.sh/notification-generator works ok (after allowing notifications from that site):

Notification Generator _ Peter.sh-2020-09-18 07_15_21.png

 

Notification Generator _ Peter.sh and 1 more page - Personal - Microsoft​ Edge-2020-09-18 07_33_49.png <-- Click here!


-2020-09-18 07_24_37.png

However, when using WebView2 and the WebView2APISample from https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/win32 you get informed that permissions are required (first image above) but nowhere is there a button to grant such a permission.

Is there a solution to this?

 

0 Replies