vueuse / vueuse

Collection of essential Vue Composition Utilities for Vue 2 and 3

Home Page:https://vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useWebNotification not working on chrome mobile device

ibnusyawall opened this issue · comments

Describe the bug

I have grant permission of the notification request but notification not showing on chrome browser mobile device, works perfect on chrome dekstop device only, how to solve the problem?

The error like this when im using mobile device:

TypeError: Failed to construct 'Notification': Illegal constructor. Use ServiceWorkerRegistration.showNotification() instead.

Reproduction

https://vueuse.org/core/useWebNotification/

System Info

System:
    OS: Android 11; CPH2269 Build/RP1A.200720.011

Browsers:
    Chrome: 125.0.6422.52

Used Package Manager

npm

Validations