{"id":21884642,"url":"https://github.com/onehilltech/ember-blueprint-firebase-messaging","last_synced_at":"2026-05-08T04:10:01.434Z","repository":{"id":77815433,"uuid":"346931298","full_name":"onehilltech/ember-blueprint-firebase-messaging","owner":"onehilltech","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-26T21:12:14.000Z","size":4141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T16:30:42.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onehilltech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-12T04:01:08.000Z","updated_at":"2024-06-26T21:12:17.000Z","dependencies_parsed_at":"2025-03-22T01:30:09.610Z","dependency_job_id":"d09a472e-cc6f-40f7-a502-a940f3367f2e","html_url":"https://github.com/onehilltech/ember-blueprint-firebase-messaging","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/onehilltech/ember-blueprint-firebase-messaging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-firebase-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-firebase-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-firebase-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-firebase-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onehilltech","download_url":"https://codeload.github.com/onehilltech/ember-blueprint-firebase-messaging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-firebase-messaging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271242186,"owners_count":24724988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T10:15:05.631Z","updated_at":"2026-05-08T04:09:56.382Z","avatar_url":"https://github.com/onehilltech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-blueprint-firebase-messaging\n==============================================================================\n\nAn add-on for integrating Firebase Messaging into your Ember App\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-blueprint-firebase-messaging\n```\n\n\nConfiguration\n------------------------------------------------------------------------------\n\n### Application Configuration\n\nSet the `firebase.baseUrl` property in `configs/environment.js`. This url points to \nthe mounting point for the main router from \n[@onehilltech/blueprint-firebase-messaging](https://github.com/onehilltech/blueprint/tree/master/packages/blueprint-firebase-messaging/app/routers/v1).\n\n```javascript\nmodule.exports = function (environment) {\n  let ENV = {\n    // ...\n    \n    firebase: {\n      baseUrl: `http://localhost:8080/firebase`\n    }\n  };\n  \n  // ...\n}\n```\n\n### Capacitor Mobile Apps\n\nYou must set the environment variable `CAPACITOR_BUILD=true` when you build your EmberJS\napplication for capacitor (see [ember-cli-capacitor](https://github.com/shipshapecode/ember-cli-capacitor)).\nIf you don't set the `CAPACITOR_BUILD` environment variable, then this add-on will\nnot integrate properly into your capacitor application.\n\n\u003e `CAPACITOR_BUILD` is automatically added to `configs/environment.js`.\n\nDevice Token Registration\n------------------------------------------------------------------------------\n\nThe device tokens are automatically registered with the backend server when\na user signs in to a gatekeeper session. Also, the device token is removed\nfrom the server when a user signs out of their current gatekeeper session.\n\n\nHandling Push Notifications\n------------------------------------------------------------------------------\n\n### Foreground notifications\n\nThe `@pushNotification` decorator is used to handle push notifications while the\nmobile app is in the foreground. This decorator can be attached to any route in\nthe Ember app. Here is an example of attaching it to the `IndexRoute`. This approach\nis useful if you want to handle push notifications in a target route differently \nfrom the general notification.\n\n```javascript\n// app/routes/index.js\n\nimport { pushNotification } from 'ember-blueprint-firebase-messaging';\n\nexport default class IndexRoute extends Route {\n\n  // ...\n  \n  @pushNotification\n  doPaymentCompleteNotification (notification) {\n    // handle the notification\n  }\n}\n```\n\n### Background notifications\n\nBackground notifications are ones received while the app is not in the foreground. \nThese notifications typically wake the target mobile application when tapped (this \nwill be indicated in the notification). You handle background notifications by \nimplementing the `doPushNotification()` on the application route. If you do not\nimplement the `doPushNotification()` method on the application route, then the\nbackground push notifications will be ignored.\n\n\u003e Background push notifications are only handled after the user taps the notification.\n\n\n```javascript\n// app/routes/application.js\n\nexport default class ApplicationRoute extends Route {\n  // ...\n  \n  doPushNotification (notification) {\n    // handle the background notification\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonehilltech%2Fember-blueprint-firebase-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonehilltech%2Fember-blueprint-firebase-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonehilltech%2Fember-blueprint-firebase-messaging/lists"}