{"id":15080819,"url":"https://github.com/reliefapplications/notifications-bundle","last_synced_at":"2025-10-05T13:30:18.981Z","repository":{"id":62534560,"uuid":"119809524","full_name":"ReliefApplications/notifications-bundle","owner":"ReliefApplications","description":"Using Fcm","archived":true,"fork":false,"pushed_at":"2018-07-25T08:29:16.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"1.0.1","last_synced_at":"2024-11-30T08:38:58.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ReliefApplications.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-01T08:56:49.000Z","updated_at":"2023-01-28T10:57:40.000Z","dependencies_parsed_at":"2022-11-02T14:47:04.514Z","dependency_job_id":null,"html_url":"https://github.com/ReliefApplications/notifications-bundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReliefApplications%2Fnotifications-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReliefApplications%2Fnotifications-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReliefApplications%2Fnotifications-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReliefApplications%2Fnotifications-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReliefApplications","download_url":"https://codeload.github.com/ReliefApplications/notifications-bundle/tar.gz/refs/heads/1.0.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235399012,"owners_count":18983814,"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":[],"created_at":"2024-09-25T05:31:46.265Z","updated_at":"2025-10-05T13:30:18.660Z","avatar_url":"https://github.com/ReliefApplications.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Notifications Bundle\n===================== \n\n## Installation \n\n### Step 1: Download the Bundle \n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n\n```bash\n$ composer require relief_applications/notifications-bundle\n```\n\n### Step 2: Enable the Bundle \n\nThen, enable the bundle by adding it to the list of registered bundles\nin the `app/AppKernel.php` file of your project:\n\n```php\n\u003c?php\n// app/AppKernel.php\n\n// ...\nclass AppKernel extends Kernel\n{\n    public function registerBundles()\n    {\n        $bundles = array(\n            // ...\n\n            new RA\\NotificationsBundle\\RANotificationsBundle(),\n        );\n\n        // ...\n    }\n\n    // ...\n}\n```\n\n### Step 3 : Configure the Bundle \n\nIn your project, add at the end of the file `app/config/config.yml` the following configuration :\n```yml\nra_notifications:\n    android:\n        server_key: \"%android_server_key%\"\n        fcm_server: \"%android_fcm_server%\"\n    ios:\n        push_passphrase: '%ios_push_passphrase%'\n        push_certificate: 'null'\n        apns_server: '%ios_apns_server%'\n    device:\n        class: YourBundle\\Entity\\Device\n    contexts:\n        ctx_1:\n            ios:\n                push_certificate: /var/ioskeys/crises.pem\n                apns_topic: topic_name1\n        ctx_2:\n            ios:\n                push_certificate: /var/ioskeys/americas.pem\n                apns_topic: topic_name2\n\n```\n\n**Optional** (but recommended) **:**\n\nFor improved error management for iOS notifications, you will need http2 support for cURL on your machine. [See this tutorial.](https://serversforhackers.com/video/curl-with-http2-support)\n\nOnce you have followed this tutorial, check that cURL supports HTTP/2 by running :\n```bash\n$ curl --http2 -I https://nghttp2.org/\n```\n\nIf it works, you can remove the line :\n```yml\n            protocol: legacy\n```\nin your `app/config/config.yml` file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freliefapplications%2Fnotifications-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freliefapplications%2Fnotifications-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freliefapplications%2Fnotifications-bundle/lists"}