ember-cli-push

0.1.8 • Public • Published

Ember-cli-push

Build Status Ember Observer Score Code Climate npm version

This is a simple service wrapper for Push.js which allows you to easily create native cross-browser notifications.

To include in your project install the addon as usual

ember install ember-cli-push

Usage example:

import Ember from 'ember';
 
export default Ember.Controller.extend({
  push: Ember.inject.service(),
  actions: {
    sendPush() {
      this.get('push').create("Hello world!", {
        body: "How's it hangin'?",
        icon: '/assets/images/logo.png',
        timeout: 4000
      });
    }
  }
})

This README outlines the details of collaborating on this Ember addon.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

ember-cli-push

Package Sidebar

Install

npm i ember-cli-push

Weekly Downloads

7

Version

0.1.8

License

MIT

Last publish

Collaborators

  • lifeart