{"id":17999655,"url":"https://github.com/skoro/web_push_notification","last_synced_at":"2025-07-01T00:07:02.957Z","repository":{"id":97848354,"uuid":"272215080","full_name":"skoro/web_push_notification","owner":"skoro","description":"Clone of my drupal module.","archived":false,"fork":false,"pushed_at":"2020-06-29T17:20:45.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"8.x-1.x","last_synced_at":"2025-04-04T07:15:11.554Z","etag":null,"topics":["drupal-8","drupal-9","drupal-module","webpush-notifications"],"latest_commit_sha":null,"homepage":"https://www.drupal.org/project/web_push_notification","language":"PHP","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/skoro.png","metadata":{"files":{"readme":"README.txt","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}},"created_at":"2020-06-14T14:09:52.000Z","updated_at":"2020-06-29T17:20:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"341ae5eb-f2ad-4bbf-a459-574f0b77174e","html_url":"https://github.com/skoro/web_push_notification","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/skoro/web_push_notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fweb_push_notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fweb_push_notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fweb_push_notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fweb_push_notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skoro","download_url":"https://codeload.github.com/skoro/web_push_notification/tar.gz/refs/heads/8.x-1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fweb_push_notification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262870872,"owners_count":23377312,"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":["drupal-8","drupal-9","drupal-module","webpush-notifications"],"created_at":"2024-10-29T22:14:05.124Z","updated_at":"2025-07-01T00:07:02.924Z","avatar_url":"https://github.com/skoro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"README.txt for Web Push Notification module\n-------------------------------------------\n\nINTRODUCTION\n------------\n\nWeb Push Notification module allows you to send the browser push notifications.\nSee (https://developer.mozilla.org/en-US/docs/Web/API/Push_API) for details.\n\nThis module doesn't use any third-party services for sending notifications instead\nit handles directly to the browser push services. Thus it can be used for low traffic\nnotifications but if you need to send mass of notifications you need to use\na foreign service anyway instead of this module.\n\nThe module registers a service worker to handle push notification and you may\nto define pages where the service worker won't be registered (for example, contact pages, etc).\n\nThe notifications may be sent by manual or when a new content is added (the administrator\ncan choose content types to notify).\n\nREQUIREMENTS\n------------\n\n  - SSL certificate is mandatory : Push notification will only work on\n    domain with SSL enabled. For testing purposes you need to use\n    localhost (127.0.0.1)\n\n  - Please be sure that the following PHP extensions is installed and enabled:\n    - curl extension (https://www.php.net/manual/en/book.curl.php)\n    - gmp extension (https://www.php.net/manual/en/book.gmp.php)\n\n  - Web Push library for PHP (installed automatically via composer)\n    (https://github.com/web-push-libs/web-push-php)\n\n  - Browser Push API compatibility:\n    (https://developer.mozilla.org/en-US/docs/Web/API/Push_API#Browser_compatibility)\n\n\nINSTALLATION\n------------\n\n - Install the Web Push Notification module as you would normally install a contributed Drupal\n   module. Visit https://www.drupal.org/node/1897420 for further information.\n - Install via composer:\n    composer require drupal/web_push_notification\n\nCONFIGURATION\n-------------\n\nAfter the module is installed open its configuration page (admin/config/services/web-push-notification)\nand generate keys by pressing the \"Generate keys\" button.\nClear the cache and open the front page as an anonymous user. The browser will popup a dialog for subscribing\nfor the notifications. Accept it. In the configuration page on the \"Subscriptions\" tab you should see\na new subscriber. Go to \"Test\" tab, fill mandatory \"Title\" and \"Message\" fields and send a test message.\n\nCONTENT NOTIFICATION\n--------------------\n\nIf you want to notify about specific content (for example, a news is added) you should choose on\nthe configuration page which content type will be processed. Also, you can choose which fields of the\nspecified content type to use for the description and the image in a notification banner.\n\nAfter the content is added the 'web_push_queue' queue will be created. You may process that queue\nby the 'drush' command:\n\n\u003ccode\u003e\n    drush queue:run web_push_queue\n\u003c/code\u003e\n\nYou can insert the above command in your system cron and invoke it, every 5 - 10 min.\n\nTESTING\n-------\n\nAs it said earlier the notifications only work on localhost. To test them, you need to run your site\non localhost. It can be easily done with the `drush` command in your project root:\n```\ndrush serve\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoro%2Fweb_push_notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskoro%2Fweb_push_notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoro%2Fweb_push_notification/lists"}