Notification Request Permission Prompt not showing on ios sfari

192 Views Asked by At

we implemented fcm webpush notification That are working fine on other browser except on ios safari

Notification.requestPermission not open consent prompt on safari & ios

Notification.requestPermission().then((permission) => {
      if (permission === 'granted') {
        getToken(messaging, {vapidKey: "BDdPw4DcKQqPO----------------"}).then((currentToken) => {
          if (currentToken) {
            this.sendTokenToServer(currentToken);
          }
        }).catch((err) => {
          console.log('An error occurred while retrieving token. ', err);
        });
      }
    });`
0

There are 0 best solutions below