Ember CLI Notifications is an Ember addon that provides Atom-inspired, transient notification messages for Ember applications. It enables developers to display various types of in-app alerts such as success, error, warning, and info messages, typically appearing at the top of the screen. The current stable version is 9.1.0, released in January 2025. This package generally follows a release cadence tied to Ember.js and Ember CLI updates, with major versions often introducing breaking changes to keep pace with the evolving Ember ecosystem, typically every 1-2 years. Key differentiators include its focus on a simple, injectable service for managing notifications, allowing programmatic control over message display, and offering customizable styling options. It integrates seamlessly into modern Ember applications, supporting Embroider and ember-auto-import v2.
npm install ember-cli-notificationsVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to inject the `notifications` service into an Ember controller and use it to display various types of notifications (success, error, info) with custom options, as well as clearing them.
Ensure your Ember application is running Ember.js 3.16 or higher and is compatible with Ember v2 addons. You may need to update your `ember-cli-build.js` or `package.json` configurations.
Migrate your icon customization to use component-based overrides. Remove any usage of the `equals` helper and upgrade your Node.js environment to a supported version (Node.js 12+).
Upgrade your Node.js environment and Ember.js application to supported versions (Node.js 10+, Ember.js 3.8+).
Remove `ember-cli-notifications` related Font Awesome configuration. Update all service injections to use `@service notifications;`. Refactor any CSS overrides that relied on CSS Modules to use standard CSS practices.
When creating a notification, pass `autoClear: false` in the options object to make it persistent, or set `clearDuration: 0` to prevent automatic clearing regardless of `autoClear`.
Ensure `import { inject as service } from '@ember/service';` is present and `@service notifications;` is used on the class property where you intend to use the service.Run `ember install ember-cli-notifications` again. If that doesn't work, try clearing your `node_modules` and `tmp` directories (`rm -rf node_modules tmp && npm install`) and then rebuilding.
Refactor your templates to use standard Ember template helpers for comparison (e.g., `{{if (eq this.value 'some-string')}}`) or update your dependencies.