Skip to content

How can I tell if the browser supports notifications #138

Closed

Description

@itg-assistant

Nic Adams asked 2016-06-30 15:34:49 UTC

I've been attempting to play with the notifications extension and I've finally figured out that it doesn't work with IE.  Would it be possible to have the Application.Browser.Features also include Notification support?

Thanks

Nic

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-06-30 16:05:27 UTC

    It should already include it. This is the initialization of the features map from the client passed in together with the first load request.

    var data = {
     hash: location.hash.substr(1),
     browserSize: this.browserSize,
     screenSize: { width: screen.width, height: screen.height },
     os: this.platform.getSystemName(),
     device: this.platform.getDeviceType(),
     browser: this.platform.getBrowserName(),
     version: this.platform.getBrowserVersion(),
     fullScreen: window.fullScreenApi ? window.fullScreenApi.isFullScreen() : false,
     features: {
     webSocket: ("WebSocket" in window),
     arrayBuffer: ("ArrayBuffer" in window),
     notification: ("Notification" in window),
     geolocation: ("geolocation" in navigator),
     localStorage: ("Storage" in window),
     speechSynthesis: (window.speechSynthesis) != null,
     fullScreen: window.fullScreenApi ? window.fullScreenApi.supportsFullScreen : false,
     speechRecognition: (window.speechRecognition || window.webkitSpeechRecognition || window.mozSpeechRecognition) != null,
     },
     language: language
     };
    
  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Nic Adams answered 2016-07-01 07:16:24 UTC

    So it does - my bad. I should have looked.

    Nic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn improvement to something that already works.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions