{"id":22026950,"url":"https://github.com/igor-adlab/hemera-fcm","last_synced_at":"2025-07-08T10:33:40.069Z","repository":{"id":57262741,"uuid":"114695845","full_name":"Igor-Adlab/hemera-fcm","owner":"Igor-Adlab","description":"Hemera plugin for Google FCM","archived":false,"fork":false,"pushed_at":"2017-12-19T21:29:29.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T05:51:19.607Z","etag":null,"topics":["fcm","firebase","hemera","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Igor-Adlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-18T22:55:57.000Z","updated_at":"2018-01-22T18:51:27.000Z","dependencies_parsed_at":"2022-09-01T04:26:47.326Z","dependency_job_id":null,"html_url":"https://github.com/Igor-Adlab/hemera-fcm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor-Adlab%2Fhemera-fcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor-Adlab%2Fhemera-fcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor-Adlab%2Fhemera-fcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor-Adlab%2Fhemera-fcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Igor-Adlab","download_url":"https://codeload.github.com/Igor-Adlab/hemera-fcm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245091753,"owners_count":20559431,"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","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":["fcm","firebase","hemera","typescript"],"created_at":"2024-11-30T07:33:52.438Z","updated_at":"2025-03-23T11:20:33.566Z","avatar_url":"https://github.com/Igor-Adlab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hemera FCM\nPlugin for Firebase Cloud Messaging\n\n## Examples\n\n### Setup\n```javascript\nconst FCM = require('hemera-fcm');\n// Code...\nhemera.use(FCM, { credentials: require('./google-services') });\n```\n\n### Send notification\n```javascript\nhemera.act({\n\tcmd: \"CMD_SEND_DEVICE\" || \"CMD_SEND_TOPIC\" || \"CMD_SEND_GROUP\",\n\ttopic: \"TOPIC_FCM\",\n\tid: [\"id-1\", \"id-2\", \"...\"], \n\tpayload: {\n\t\tdata: {},\n\t\tnotification: {\n\t\t\ttitle: \"...\",\n\t\t\tbody: \"...\",\n\t\t},\n\t},\n}, function() {})\n```\n    \n### Subscribe / Unsubscribe to chanel\n```javascript\nhemera.act({\n\tcmd: \"CMD_SUBSCRIBE\" || \"CMD_UNSUBSCRIBE\",\n\ttopic: \"TOPIC_FCM\",\n\tpayload: {\n\t\tclient: \"...\",\n\t\ttopic: \"...\",\n\t},\n}, function() {})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figor-adlab%2Fhemera-fcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figor-adlab%2Fhemera-fcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figor-adlab%2Fhemera-fcm/lists"}