{"id":18271802,"url":"https://github.com/ponomarevlm/Apns4r","last_synced_at":"2025-04-05T02:30:43.495Z","repository":{"id":66683101,"uuid":"243132","full_name":"ponomarevlm/Apns4r","owner":"ponomarevlm","description":"Lib to communicate with Apple push notification services and make own APNs provider","archived":false,"fork":false,"pushed_at":"2010-04-23T03:28:40.000Z","size":109,"stargazers_count":49,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-11T00:02:32.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ponomarevlm.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-07-04T15:01:34.000Z","updated_at":"2024-12-31T15:42:51.000Z","dependencies_parsed_at":"2023-02-20T09:00:27.160Z","dependency_job_id":null,"html_url":"https://github.com/ponomarevlm/Apns4r","commit_stats":null,"previous_names":["thegeekbird/apns4r"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponomarevlm%2FApns4r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponomarevlm%2FApns4r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponomarevlm%2FApns4r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponomarevlm%2FApns4r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ponomarevlm","download_url":"https://codeload.github.com/ponomarevlm/Apns4r/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279274,"owners_count":20912856,"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-11-05T11:39:31.676Z","updated_at":"2025-04-05T02:30:42.967Z","avatar_url":"https://github.com/ponomarevlm.png","language":"Ruby","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"Apns4r\n======\n\nThis lib is intended to allow write my own APNs provider for Apple Push\nNotificaion services (APNs) in ruby.  Requires json gem.\n\nCan be used as Rails plugin too. No models and rake tasks, just pick sample\nconfig and fire-and-forget this notifications.\n\nInstallation\n============\nUse git, Luke!\nFor Rails:\n\n    ./script/plugin install git://github.com/thegeekbird/Apns4r.git\n\nand for the rest world `git submodule` can be a solution:\n\n    git submodule add git://github.com/thegeekbird/Apns4r.git vendor/Apns4r\n\nConfiguration\n=============\n\nIf you want to use APNs sertificates with ruby (ie with OpenSSL),\nhere's a tip from [great post about integration between Python and APNs](http://blog.nuclearbunny.org/2009/05/11/connecting-to-apple-push-notification-services-using-python-twisted/):\n\n\u003eOne caveat  - the Mac OS X Keychain Access application does not directly export\n\u003ecertificates and private keys in Private Enhanced Mail (.pem)  format, which is\n\u003ewhat the OpenSSL implementation we use with Twisted will want, but luckily\n\u003ethere’s an easy mechanism to convert if you export the files as Personal\n\u003eInformation Exchange (.p12) format. The following two commands can be used to\n\u003econvert the .p12 files into .pem files using the built-in openssl command on\n\u003eMac OS X or most Linux distributions:\n    openssl pkcs12 -in cred.p12 -out certkey.pem -nodes -clcerts\n    openssl pcks12 -in pkey.p12 -out pkey.pem -nodes -clcerts\n\nFor code samples see Example section, also there is simple EventMachine powered\nsendserver.rb and two config samples.\n\nExample\n=======\n\nAll simple as require - create Notification - push, just try it in irb\n\n    require 'lib/apns4r' #=\u003e true\n    n = APNs4r::Notification.create 'e754dXXX', { :aps =\u003e {:alert =\u003e \"Hey, dude!\", :badge =\u003e 1}, :custom_data =\u003e \"asd\" } #=\u003e #\u003cAPNs4r::Notification:0x11fe2c0\u003e\n    APNs4r::Sender.new.push n #=\u003e 97\n\nDoc\n===\n[Gimme moar guts](http://rdoc.info/projects/thegeekbird/Apns4r)\n\nCopyright (c) 2009 Leonid Ponomarev, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponomarevlm%2FApns4r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fponomarevlm%2FApns4r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponomarevlm%2FApns4r/lists"}