{"id":30144116,"url":"https://github.com/icerockdev/fcm-push-service","last_synced_at":"2026-03-15T17:19:07.518Z","repository":{"id":40468488,"uuid":"225309197","full_name":"icerockdev/fcm-push-service","owner":"icerockdev","description":"Tools for sending fcm push by kotlin - part of BOKO libs","archived":false,"fork":false,"pushed_at":"2025-06-24T05:05:07.000Z","size":183,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-24T06:24:23.005Z","etag":null,"topics":["backend","fcm","kotlin","kotlin-jvm","push"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/icerockdev.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":"2019-12-02T07:13:20.000Z","updated_at":"2025-06-24T05:03:34.000Z","dependencies_parsed_at":"2024-05-31T11:24:42.104Z","dependency_job_id":"38d81d16-7dcd-44a4-bd87-187bf9b5db5f","html_url":"https://github.com/icerockdev/fcm-push-service","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/icerockdev/fcm-push-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Ffcm-push-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Ffcm-push-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Ffcm-push-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Ffcm-push-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icerockdev","download_url":"https://codeload.github.com/icerockdev/fcm-push-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Ffcm-push-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269849552,"owners_count":24485153,"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-11T02:00:10.019Z","response_time":75,"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":["backend","fcm","kotlin","kotlin-jvm","push"],"created_at":"2025-08-11T07:37:51.874Z","updated_at":"2026-03-15T17:19:02.485Z","avatar_url":"https://github.com/icerockdev.png","language":"Kotlin","readme":"# Fcm push service\n## **NOTE. Only sending with device tokens is supported**\n## Installation\n````kotlin\n// Append repository\nrepositories {\n    mavenCentral()\n}\n\n// Append dependency\nimplementation(\"com.icerockdev.service:fcm-push-service:2.2.0\")\n````\n\n## Koin configure\n\n### include dependency\n\n````kotlin\n\nval fcmScope = CoroutineScope(Dispatchers.IO + SupervisorJob())\nsingle {\n    PushService(\n        coroutineScope = fcmScope,\n        config = FCMConfig(\n            googleServiceAccountJson = appConf.getString(\"fcm.googleServiceAccountJson\")\n        ),\n        pushRepository = object : IPushRepository {\n            override fun deleteByTokenList(tokenList: List\u003cString\u003e): Int {\n                // remove wrong tokens here\n                return 0\n            }\n        }\n    )\n}\n\n````\n\n````kotlin\nclass Container : KoinComponent {\n    val pushService: PushService by inject()\n}\n````\n\n````\n// application.conf\nfcm {\n    googleServiceAccountJson = ${GOOGLE_SERVICE_ACCOUNT_JSON}\n}\n````\n\n## Send data example\n````kotlin\npushService.sendAsync(\n    payLoad = FCMPayLoad(\n        dataObject = data,\n        notificationObject = notification,\n        tokenList = tokens\n    )\n)\n````\n\n## Send data with an example of receiving a response\n````kotlin\nval result: PushResult = pushService.sendAsync(\n    payLoad = FCMPayLoad(\n        dataObject = data,\n        notificationObject = notification,\n        tokenList = tokens\n    )\n).await()\n````\n\n## Contributing\nAll development (both new features and bug fixes) is performed in the `develop` branch. This way `master` always contains the sources of the most recently released version. Please send PRs with bug fixes to the `develop` branch. Documentation fixes in the markdown files are an exception to this rule. They are updated directly in `master`.\n\nThe `develop` branch is pushed to `master` on release.\n\nFor more details on contributing please see the [contributing guide](CONTRIBUTING.md).\n\n## License\n        \n    Copyright 2019 IceRock MAG Inc.\n    \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n       http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficerockdev%2Ffcm-push-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficerockdev%2Ffcm-push-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficerockdev%2Ffcm-push-service/lists"}