Skip to content

lifeart/ember-cli-push

Repository files navigation

This addon suspended, try ember-cli-pushjs

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
      });
    }
  }
})

[Short description of the addon.]

Installation

ember install my-addon

Usage

[Longer description of how to use the addon in apps.]

Contributing

Installation

  • git clone <repository-url>
  • cd my-addon
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

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

License

This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published