{"id":29166208,"url":"https://github.com/mfori/apify-fcm-send","last_synced_at":"2025-07-22T15:09:46.993Z","repository":{"id":252671555,"uuid":"841100422","full_name":"MFori/apify-fcm-send","owner":"MFori","description":"Actor for sending Firebase Cloud Messaging (FCM) messages aka push notifications.","archived":false,"fork":false,"pushed_at":"2024-09-15T15:47:07.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T08:11:22.657Z","etag":null,"topics":[],"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/MFori.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-11T16:35:26.000Z","updated_at":"2024-09-15T15:47:10.000Z","dependencies_parsed_at":"2024-09-15T16:57:03.615Z","dependency_job_id":null,"html_url":"https://github.com/MFori/apify-fcm-send","commit_stats":null,"previous_names":["mfori/apify-fcm-send"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MFori/apify-fcm-send","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2Fapify-fcm-send","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2Fapify-fcm-send/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2Fapify-fcm-send/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2Fapify-fcm-send/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MFori","download_url":"https://codeload.github.com/MFori/apify-fcm-send/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFori%2Fapify-fcm-send/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266516481,"owners_count":23941436,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2025-07-01T08:10:32.137Z","updated_at":"2025-07-22T15:09:46.971Z","avatar_url":"https://github.com/MFori.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FCM Send\n\n![Firebase Cloud Messaging](https://github.com/MFori/apify-fcm-send/blob/master/img/fcm.png?raw=true \"Firebase Cloud Messaging\")\n\nThis actor can be used as integration with Firebase Cloud Messaging. It sends a message to a device, group of\ndevices or topics. The message can be fully customized supporting all FCM options.\n\n## Targets option\n\n- **Device id(s)** - Send a message to a specific device or group of devices.\n- **Topic** - Send a message to a topic.\n- **Condition** - Send a message to a condition.\n\n## Input\n\nThe input of this actor should be JSON containing the following fields:\n\n| Field             | Required | Type          | Description                                                                                                                                   |\n|-------------------|----------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| serviceAccountKey | true     | string        | Service account key in JSON format. You can get it from Firebase Console -\u003e Project Settings -\u003e Service accounts -\u003e Generate new private key. |\n| deviceTokens      | false*   | string array  | Array of device tokens to send the message to.                                                                                                |\n| topic             | false*   | string        | Topic to send the message to.                                                                                                                 |\n| condition         | false*   | string        | Condition to send the message to.                                                                                                             |\n| notification      | true     | object (json) | Notification object to send. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#resource:-message for more details. |\n| data              | false    | object (json) | Data object to send. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#resource:-message for more details.         |\n| android           | false    | object (json) | Android specific options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidconfig for more details.        |\n| webPush           | false    | object (json) | WebPush specific options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushconfig for more details.        |\n| apns              | false    | object (json) | APNs specific options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#apnsconfig for more details.              |\n| fcmOptions        | false    | object (json) | FCM options. See https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#fcmoptions for more details.                        |\n\n*One of the targets (deviceTokens, topic or condition) is required.\n\nExample of the input:\n\n```json\n{\n  \"serviceAccountKey\": \"{\\n  \\\"type\\\": \\\"service_account\\\",\\n  \\\"project_id\\\": \\\"your-project-id\\\",\\n  \\\"private_key_id\\\": \\\"someprivatekeyid1234567890abcdef\\\",\\n  \\\"private_key\\\": \\\"-----BEGIN PRIVATE KEY-----\\\\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASC...\\\\n-----END PRIVATE KEY-----\\\\n\\\",\\n  \\\"client_email\\\": \\\"firebase-adminsdk-abcde@your-project-id.iam.gserviceaccount.com\\\",\\n  \\\"client_id\\\": \\\"123456789012345678901\\\",\\n  \\\"auth_uri\\\": \\\"https://accounts.google.com/o/oauth2/auth\\\",\\n  \\\"token_uri\\\": \\\"https://oauth2.googleapis.com/token\\\",\\n  \\\"auth_provider_x509_cert_url\\\": \\\"https://www.googleapis.com/oauth2/v1/certs\\\",\\n  \\\"client_x509_cert_url\\\": \\\"https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-abcde%40your-project-id.iam.gserviceaccount.com\\\"\\n}\",\n  \"deviceTokens\": [\n    \"eZc9N8F-3wIaFQq2_rU2K_v2A3QlUd9X9C-zQIBvE0pA1zCxPtF7A3H3Pl_m8TlPQAlnvlH2WmD4kKz3WodL8w\"\n  ],\n  \"notification\": {\n    \"title\": \"FCM Send\",\n    \"body\": \"Hello from FCM Send!\"\n  }\n}\n```\n\n## Output\n\nThe output of this actor is list of objects (for each message sent) containing the following fields:\n\n| Field     | Required | Type    | Description           |\n|-----------|----------|---------|-----------------------|\n| messageId | false    | string  | Unique FCM message id |\n| success   | true     | boolean | true if message sent  |\n| error     | false    | string  | Error message         |\n\nExample of the output:\n\n```json\n[\n   {\n      \"messageId\": \"/projects/your-project-id/messages/0:7f2a1b345cde678f9120abcd34567890\",\n      \"success\": true\n   },\n   {\n      \"success\": false,\n      \"error\": \"The registration token is not a valid FCM registration token\"\n   }\n]\n```\n\n## How to customize the notification\n\nThe notification can be fully customized, see https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#resource:-message for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfori%2Fapify-fcm-send","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfori%2Fapify-fcm-send","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfori%2Fapify-fcm-send/lists"}