This addon suspended, try ember-cli-pushjs
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.]
ember install my-addon
[Longer description of how to use the addon in apps.]
git clone <repository-url>
cd my-addon
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.