{"id":13697221,"url":"https://github.com/aggarwalankush/ionic-push-base","last_synced_at":"2026-03-10T18:33:34.562Z","repository":{"id":86748088,"uuid":"63896358","full_name":"aggarwalankush/ionic-push-base","owner":"aggarwalankush","description":"Ionic Push Notifications Base App for iOS and Android","archived":false,"fork":false,"pushed_at":"2017-06-30T04:20:00.000Z","size":2257,"stargazers_count":161,"open_issues_count":7,"forks_count":64,"subscribers_count":17,"default_branch":"master","last_synced_at":"2026-02-28T10:17:27.674Z","etag":null,"topics":["android","angular","ionic","ios","push-notifications"],"latest_commit_sha":null,"homepage":"https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59","language":"TypeScript","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/aggarwalankush.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-21T19:21:47.000Z","updated_at":"2026-02-21T22:10:40.000Z","dependencies_parsed_at":"2023-03-13T19:54:11.807Z","dependency_job_id":null,"html_url":"https://github.com/aggarwalankush/ionic-push-base","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aggarwalankush/ionic-push-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggarwalankush%2Fionic-push-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggarwalankush%2Fionic-push-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggarwalankush%2Fionic-push-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggarwalankush%2Fionic-push-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aggarwalankush","download_url":"https://codeload.github.com/aggarwalankush/ionic-push-base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggarwalankush%2Fionic-push-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30189478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T17:33:53.563Z","status":"ssl_error","status_checked_at":"2026-03-06T17:33:51.678Z","response_time":250,"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","angular","ionic","ios","push-notifications"],"created_at":"2024-08-02T18:00:54.169Z","updated_at":"2026-03-10T18:33:34.541Z","avatar_url":"https://github.com/aggarwalankush.png","language":"TypeScript","readme":"Ionic Push Base\n=================\n\nThis can be used as base template for Ionic Push apps. It's working for both iOS and Android Push Notifications.\n  \n## Tutorial\n* [Push Notifications in Ionic](https://medium.com/@ankushaggarwal/push-notifications-in-ionic-658461108c59)\n* [FCM Setup for Android Notifications](https://medium.com/@ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd)\n* [APNS Setup for IOS Notifications](https://medium.com/@ankushaggarwal/generate-apns-certificate-for-ios-push-notifications-85e4a917d522)\n\n## Prerequisites\n- Download nodejs from https://nodejs.org/en/download/current/ It will install `node` and `npm`\n```bash\nnode -v\n - should be \u003e= 6.0.0\nnpm -v\n - should be \u003e= 3.0.0\n```\n- For iOS, update XCode version to 8.0 or higher\n- Install cocoapods, required by latest version of phonegap-push-plugin\n```bash\nsudo gem install cocoapods\npod setup\n```\n\n## Getting Started\n\n* Clone this repository\n\n* Install Ionic, cordova and node_modules\n\n    ```bash\n    $ npm install -g ionic cordova\n    $ npm install\n    ```\n\n* Generate **SENDER_ID** using this [tutorial](https://medium.com/@ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd) :+1:\n  \n* _Replace **YOUR_SENDER_ID** in **config.xml and app.ts** with above **SENDER_ID**_\n\n### Android\n\n```bash\n    $ ionic cordova platform add android\n    $ ionic cordova build android\n    $ ionic cordova run android\n```\n\n### iOS\n```bash\n    $ ionic cordova platform add ios\n    $ ionic cordova build ios\n```    \n    Run using XCode\n\n\n####Use device token printed in console for push notifications using below server code\n\n## Push Notifications Preview in lock screen and while using App\n\n* Android\n  \n  \u003cimg src=\"screenshots/android_push.png\" alt=\"Notification on Lock Screen\" width=\"250\"/\u003e\n  \u003cimg src=\"screenshots/android_alert.png\" alt=\"Notification While Using App\" width=\"250\"/\u003e\n\n* iOS\n\n  \u003cimg src=\"screenshots/ios_push.png\" alt=\"Notification on Lock Screen\" width=\"250\"/\u003e\n  \u003cimg src=\"screenshots/ios_alert.png\" alt=\"Notification While Using App\" width=\"250\"/\u003e\n    \n \nServer Code\n=================\n[Push Notifications Server code](https://github.com/aggarwalankush/push-notification-server) :tada::+1:\nIt has server code used to send Push Notification to iOS and Android device.\n\n\n## File Structure of App\n\n```\nionic-push-base/\n|-- src/\n|    |-- app/\n|    |    ├── app.ts\n|    |    └── app.module.ts\n|    |    └── main.ts\n|    |\n|    |-- pages/                          * Contains all of our pages\n│    │    ├── details/                   * Push Details tab page\n│    │    │    ├── detail.html           * DetailsPage template\n│    │    │    └── detail.ts             * DetailsPage code\n│    │    │\n│    │    ├── home/                      * Home page\n│    │    │    ├── home.html             * HomePage template\n│    │    │    └── home.ts               * HomePage code\n│    │    │\n│    │    ├── tabs/                      * Tabs page\n│    │    │    ├── tabs.html             * TabsPage template\n│    │    │    └── tabs.ts               * TabsPage code\n│    │    │\n│    ├── theme/                          * App theme files\n|    |     ├── variables.scss            * App Shared Sass Variables\n|    |\n|    |-- index.html\n|    |-- manifest.json\n|    |-- service-worker.js\n|\n├── .editorconfig                        * Defines coding styles between editors\n├── .gitignore                           * Example git ignore file\n├── LICENSE                              * MIT License\n├── README.md                            * This file\n├── config.xml                           * Cordova configuration file\n├── ionic.config.json                    * Ionic configuration file\n├── package.json                         * Defines our JavaScript dependencies\n├── tsconfig.json                        * Defines the root files and the compiler options\n├── tslint.json                          * Defines the rules for the TypeScript linter   \n```\n","funding_links":[],"categories":["Projects"],"sub_categories":["Pipe"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggarwalankush%2Fionic-push-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faggarwalankush%2Fionic-push-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggarwalankush%2Fionic-push-base/lists"}