diff --git a/app/assets/javascripts/discourse/app/lib/push-notifications.js b/app/assets/javascripts/discourse/app/lib/push-notifications.js index e89cba54c4d..1659f924c56 100644 --- a/app/assets/javascripts/discourse/app/lib/push-notifications.js +++ b/app/assets/javascripts/discourse/app/lib/push-notifications.js @@ -48,8 +48,7 @@ export function isPushNotificationsSupported() { "PushManager" in window && !caps.isAppWebview && navigator.serviceWorker.controller && - navigator.serviceWorker.controller.state === "activated" && - !caps.isIOS + navigator.serviceWorker.controller.state === "activated" ) ) { return false; diff --git a/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs b/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs index 0dcaa75c17b..dd53f23151d 100644 --- a/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs +++ b/app/assets/javascripts/discourse/app/templates/preferences/notifications.hbs @@ -23,7 +23,7 @@ -{{#unless this.capabilities.isIOS}} +{{#unless this.capabilities.isAppWebview}}