{"id":39838964,"url":"https://github.com/vitalyliber/rpush-server","last_synced_at":"2026-01-18T13:25:04.987Z","repository":{"id":39697782,"uuid":"182230794","full_name":"vitalyliber/rpush-server","owner":"vitalyliber","description":"Keep push tokens from mobile devices and send push notifications to iOS/Android","archived":false,"fork":false,"pushed_at":"2025-05-31T12:17:46.000Z","size":2607,"stargazers_count":18,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T00:42:21.152Z","etag":null,"topics":["android","cloud-messaging","firebase","ios","push-notifications","rpush","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://rpush.casply.com/","language":"Ruby","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/vitalyliber.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":"2019-04-19T08:29:16.000Z","updated_at":"2025-05-31T12:17:50.000Z","dependencies_parsed_at":"2024-05-30T09:33:29.668Z","dependency_job_id":"8109fcdf-8b45-4163-be09-1ecbfdd49070","html_url":"https://github.com/vitalyliber/rpush-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vitalyliber/rpush-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalyliber%2Frpush-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalyliber%2Frpush-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalyliber%2Frpush-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalyliber%2Frpush-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitalyliber","download_url":"https://codeload.github.com/vitalyliber/rpush-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalyliber%2Frpush-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","cloud-messaging","firebase","ios","push-notifications","rpush","ruby-on-rails"],"created_at":"2026-01-18T13:25:04.453Z","updated_at":"2026-01-18T13:25:04.976Z","avatar_url":"https://github.com/vitalyliber.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Rpush-server\n\n\u003cimg src=\"/docs/logo.jpg\" align=\"right\"\n     alt=\"Rpush-server logo by Shen\"\u003e\n\nA simple push server implementation based on [**RPush**](https://github.com/rpush/rpush).\n\n* **Simple.** Has an admin panel for managing push notifications credentials, users and push tokens.\n* **Powerful.** Has all API methods for keeping push tokens and sending messages.\n* **No DevOps needed.** Easy deploy to Heroku or Dokku.\n\nThe RPush server admin panel is accessible by the [link](http://localhost:3000/admin).\n\nDefault credentials: admin \u0026 admin\n\n## Run the RPush server in development mode\n     \n1. Install dependencies\n    ```console\n    brew install libpq\n    brew install postgresql@14\n    brew install overmind\n    npm install --global yarn\n    yarn install\n    ```\n\n2. Create db and run migrations\n\n    ```console\n    rails db:setup\n    ```\n    \n3. Run a Procfile_dev processes\n\n    ```console\n    yarn s\n    ```\n\n## Auth\n\nGenerate mobile_token using the admin page:\n\n![Create mobile device](/docs/create_mobile_device.png)\n\nOpen the [app dashboard](http://localhost:5001/admin) and fill in credentials for APNS and Firebase.\n\n![Credentials page](/docs/credentials_page.png)\n\n## Endpoints\n\n* [POST /mobile_devices](#create-mobile-device)\n* [DELETE /mobile_device/:push_token](#remove-mobile-device)\n* [POST /push_notifications](#create-push-notifications)\n\n### Create mobile device\n\n_Run this method every time after starting a mobile application._\n\nPOST `/mobile_devices`\nParams:\n\n```json5\n{\n    \"mobile_device\": {\n        \"device_token\": \"mobile_device_push_token\",\n        \"device_type\": \"ios\" // ios/android\n    },\n    \"mobile_user\": {\n        \"external_key\": 123, // server user identifier\n        \"environment\": \"development\" // development/production\n    }\n}\n```\n\nHeaders:\n\n```json5\n{ Authorization: \"Bearer client_token\" }\n```\n\nResponse:\n\n```json5\n{}\n```\nResponse status: `200`\n\n### Remove mobile device\n\n_Run this method when the user logout._\n\nDELETE `/mobile_device/:push_token`\n\nResponse:\n\n```json5\n{}\n```\nResponse status: `200`\n\n### Create push notifications\n\n_Run this method on the server side_\n\nPOST `/push_notifications`\nParams:\n\n```json5\n{\n    \"message\": {\n        \"title\": \"New message\",\n        \"message\": \"Hello Mark\",\n        \"data\": {},\n        \"data_notification\": {}\n    },\n    \"mobile_user\": {\n        \"external_key\": 123, // server user identifier\n        \"environment\": \"production\" // development/production\n    },\n    device_type: 'android' // ios/android/all\n}\n```\n\nHeaders:\n\n```json5\n{ Authorization: \"Bearer server_token\" }\n```\n\nResponse:\n\n```json5\n{}\n```\nResponse status: `200`\n\n## Restore production backup for local development purposes\n\n```console\n pg_restore --verbose --clean --no-acl --no-owner -U postgres -d rpush_server_dev \u003c [path_to_backup]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalyliber%2Frpush-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitalyliber%2Frpush-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalyliber%2Frpush-server/lists"}