{"id":31795797,"url":"https://github.com/pwlkania/pushnotificationsimulation","last_synced_at":"2025-10-10T20:21:32.131Z","repository":{"id":62451311,"uuid":"209518223","full_name":"pwlkania/PushNotificationSimulation","owner":"pwlkania","description":"Helper in simulating push notifications during development","archived":false,"fork":false,"pushed_at":"2020-10-30T13:14:08.000Z","size":1500,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T03:36:52.550Z","etag":null,"topics":["apple","carthage","cocoapods","ios","mit","mit-license","mock","mocking","notification","push","pushnotification","simulation","simulator","spm","swift","swift-package-manager","swift5","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/pwlkania.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":"2019-09-19T09:48:05.000Z","updated_at":"2021-01-13T18:21:57.000Z","dependencies_parsed_at":"2022-11-01T23:31:14.555Z","dependency_job_id":null,"html_url":"https://github.com/pwlkania/PushNotificationSimulation","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pwlkania/PushNotificationSimulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlkania%2FPushNotificationSimulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlkania%2FPushNotificationSimulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlkania%2FPushNotificationSimulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlkania%2FPushNotificationSimulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwlkania","download_url":"https://codeload.github.com/pwlkania/PushNotificationSimulation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlkania%2FPushNotificationSimulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005273,"owners_count":26083861,"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-10-10T02:00:06.843Z","response_time":62,"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":["apple","carthage","cocoapods","ios","mit","mit-license","mock","mocking","notification","push","pushnotification","simulation","simulator","spm","swift","swift-package-manager","swift5","xcode"],"created_at":"2025-10-10T20:21:30.362Z","updated_at":"2025-10-10T20:21:32.125Z","avatar_url":"https://github.com/pwlkania.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PushNotificationSimulation\n\n`PushNotificationSimulation` helps in simulating push notifications in the application during development.\n\n[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange)](https://swift.org/)\n[![Travis](https://travis-ci.org/pwlkania/PushNotificationSimulation.svg?branch=master)](https://travis-ci.org/pwlkania/PushNotificationSimulation.svg?branch=master)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/PushNotificationSimulation.svg)](https://cocoapods.org/pods/PushNotificationSimulation)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen)](https://github.com/Carthage/Carthage)\n[![SPM](https://img.shields.io/badge/SPM-supported-brightgreen)](https://swift.org/package-manager/)\n[![Platform](https://img.shields.io/cocoapods/p/PushNotificationSimulation.svg)](http://cocoadocs.org/docsets/PushNotificationSimulation)\n[![License](https://img.shields.io/cocoapods/l/PushNotificationSimulation.svg)](https://github.com/pwlkania/PushNotificationSimulation/blob/master/LICENSE)\n\n## Installation\n\nUsing [Cocoapods](https://cocoapods.org/) with Podfile:\n\n```ruby\npod 'PushNotificationSimulation'\n```\n\nor [Carthage](https://github.com/Carthage/Carthage) and add a line to `Cartfile`:\n\n```ruby\ngithub \"pwlkania/PushNotificationSimulation\"\n```\n\nor [Swift Package Manager](https://github.com/apple/swift-package-manager) (from Xcode 11):\n\n```\nFile \u003e Swift Packages \u003e Add Package Dependency...\n```\n\nand add\n\n```\ngit@github.com:pwlkania/PushNotificationSimulation.git\n```\n\n## Requirements\n\niOS 11.0\n\n## Initialization\n\nModify your `AppDelegate.swift` file:\n\nImport `PushNotificationSimulation` framework (if needed):\n\n```swift\nimport PushNotificationSimulation\n```\n\nImplement `PushNotificationSimulation` protocol:\n\n```swift\n#if DEBUG\nextension AppDelegate: PushNotificationSimulation { }\n#endif\n```\n\n## Usage\n\nUsing breakpoints with debugger command (suggested approach). \n\nPush notification example:\n\n```Swift\nsim(payload: \"{\\\"aps\\\":{\\\"alert\\\":{\\\"title\\\":\\\"Game Request\\\",\\\"subtitle\\\":\\\"Five Card Draw\\\",\\\"body\\\":\\\"Bob wants to play poker\\\"},\\\"category\\\":\\\"GAME_INVITATION\\\"},\\\"gameID\\\":\\\"12345678\\\"}\", delay: 3)\n```\n\n![Payload.png](Payload.png)\n\nDevice token example:\n\n```Swift\nsim(deviceToken: \"933e3112d1eae4a1d8eb48617a265b303be28b300193b9677f0ccf52a63a5b1e\")\n```\n\n![DeviceToken.png](DeviceToken.png)\n\nYou can also use `sim(payload: ...)` or `sim(deviceToken: ...)` global functions directly in the code. However it might cause issues when code is not deactivated in production version of your application. Be careful.\n\n## License\n\nThe project is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwlkania%2Fpushnotificationsimulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwlkania%2Fpushnotificationsimulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwlkania%2Fpushnotificationsimulation/lists"}