ember-cli-push
v0.1.8
Published
Ember wrapper for Push.js - native browser messages and notifications.
Downloads
18
Maintainers
Readme
Ember-cli-push
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 repositorynpm install
bower install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember 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/.