Giter Site home page Giter Site logo

danilorb / html5-notifications-webos-style Goto Github PK

View Code? Open in Web Editor NEW

This project forked from girliemac/html5-notifications-webos-style

0.0 1.0 0.0 172 KB

HTML5 Web Notifications API Demo

Home Page: girliemac.github.com/html5-notifications-webOS-style

CSS 42.32% HTML 33.34% JavaScript 24.35%

html5-notifications-webos-style's Introduction

screenshot

Web Notifications Demo v2

W3C Web Notifications API demo in webOS UI style.

In the original demo, I implemented the notifications with webOS style, which allowed a user to swipe to close the window. However, this v2 demo no longer supports the swipable notifications because the simplified new Web Notifications spcification only allows text and icon, and external HTML files are no longer permitted.

Supported Browsers

  • Firefox 22+ (both desktop and mobile)
  • Chrome 32+ (Desktop only)

Demo

girliemac.github.com/html5-notifications-webOS-style

History

For detailed changelog, check Releases.

Known Problems

  • Chrome for Android does not support the feature
  • Firefox on Android does support, however, only one line (the last line) is displayed on the native notification bar on top. No extra UI or window from browser.
  • On Chrome (tested on 33), close() method does not seem to work. Notification windows fails to close automatically.

Firefox on Android

Notifications appear in the native notification bar, one at a time, instead of popup windows from browser.

The problem is that if a notificatin contains more than one lines one messages (when both title and body are set), only the last line (body) is displayed, instead of the main title. (When the notification bar is expanded by a user, both subject and body text are visible).

Also, custom icons aren't shown either. The icon on the notification is always Firefox icon.

screenshot

html5-notifications-webos-style's People

Contributors

girliemac avatar dfreedm avatar

Watchers

Danilo Reis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.