{"id":20340226,"url":"https://github.com/webengage/android-push-templates","last_synced_at":"2025-06-13T04:36:33.044Z","repository":{"id":82264987,"uuid":"527592992","full_name":"WebEngage/android-push-templates","owner":"WebEngage","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-22T13:56:49.000Z","size":382,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T14:49:13.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/WebEngage.png","metadata":{"files":{"readme":"README.md","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":"2022-08-22T14:09:21.000Z","updated_at":"2022-10-10T11:20:09.000Z","dependencies_parsed_at":"2023-10-04T20:41:51.400Z","dependency_job_id":"49929752-d56e-4360-a78d-b7038370f50e","html_url":"https://github.com/WebEngage/android-push-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WebEngage/android-push-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebEngage%2Fandroid-push-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebEngage%2Fandroid-push-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebEngage%2Fandroid-push-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebEngage%2Fandroid-push-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebEngage","download_url":"https://codeload.github.com/WebEngage/android-push-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebEngage%2Fandroid-push-templates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259582429,"owners_count":22880015,"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-14T21:20:19.886Z","updated_at":"2025-06-13T04:36:32.998Z","avatar_url":"https://github.com/WebEngage.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PushTemplates\n\n## How to use: \n\n### 1. Download the module from the github and add the module as a dependency in your build.gradle file of you application.\n\n### 2. Follow the guide provided \u003ca href=\"https://docs.webengage.com/docs/android-customizing-push-notifications\"\u003ehere\u003c/a\u003e for customizing push notifications to create your own templates as required.\n\n### 3. Add below line to the application class of your application or edit your callbacks for including the callbacks provided in the module.\n\n```\nWebEngage.registerCustomPushRenderCallback(CustomCallback())\nWebEngage.registerCustomPushRerenderCallback(CustomCallback())\n```\n\n### 4. Go to your webengage dashboard and add below key value pairs to your push campaign based on your template type.\n###   - Progress Bar Template\n| Key | Value | Use | \n| --- | --- | --- |\n| `we_custom_render` | `true` | Tells the WebEngage SDK to use the custom renderer registered in the callbacks above.\n| `template_type` | `bar` | **(required)**  Progress Bar template. \n| `future_time` | *epoch time in millis* | **(required)**  The time till which the notification is to be shown\n| `timer_color` | *hex value* | The color for the countdown timer\n| `show_dismiss_cta` | `true` / `false` | Show the Dismiss button at end of the CTA list\n\n\n###   - CountDown Template\n| Key | Value | Use | \n| --- | --- | --- |\n| `we_custom_render` | `true` | Tells the WebEngage SDK to use the custom renderer registered in the callbacks above.\n| `template_type` | `timer` | **(required)** CountDown Timer template\n| `future_time` | *epoch time in millis* | **(required)**  The time till which the notification is to be shown\n| `timer_color` | *hex value* | The color for the countdown timer\n| `show_dismiss_cta` | `true` / `false` | Show the Dismiss button at end of the CTA list\n\n\n\n\u003ch4\u003e\nSample Key Value Pairs: \u003c/h4\u003e\n\u003cimg width=\"633\" alt=\"image\" src=\"https://user-images.githubusercontent.com/88337360/184459615-693e2666-112a-4e9d-bab0-dc3c2482227b.png\"\u003e\n\n\u003ch2\u003eProgress Bar\u003c/h2\u003e\n\u003cimg src = \"https://user-images.githubusercontent.com/88337360/191495313-df29a1e1-f8f8-49ef-a3f1-2cb59cb00ba9.gif\" width=\"500\"/\u003e\n\n\n\u003ch2\u003eCountDown Timer\u003c/h2\u003e\n\u003cimg src = \"https://user-images.githubusercontent.com/88337360/191495355-d64fcf75-12e9-47b4-9ba9-3bee47b6e6d9.gif\" width=\"500\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebengage%2Fandroid-push-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebengage%2Fandroid-push-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebengage%2Fandroid-push-templates/lists"}