Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webengage/android-push-template-sample
Android Push Template Sample
https://github.com/webengage/android-push-template-sample
Last synced: 2 days ago
JSON representation
Android Push Template Sample
- Host: GitHub
- URL: https://github.com/webengage/android-push-template-sample
- Owner: WebEngage
- Created: 2023-04-26T09:53:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-04-26T09:55:58.000Z (over 1 year ago)
- Last Synced: 2024-03-15T18:09:09.824Z (8 months ago)
- Size: 284 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PushTemplates
## How to use:
### 1. Download the module from the github and add the module as a dependency in your build.gradle file of you application.
### 2. Follow the guide provided here for customizing push notifications to create your own templates as required.
### 3. Add below line to the application class of your application or edit your callbacks for including the callbacks provided in the module.
```
WebEngage.registerCustomPushRenderCallback(CustomCallback())
WebEngage.registerCustomPushRerenderCallback(CustomCallback())
```### 4. Go to your webengage dashboard and add below key value pairs to your push campaign based on your template type.
### - Progress Bar Template
| Key | Value | Use |
| --- | --- | --- |
| `we_custom_render` | `true` | Tells the WebEngage SDK to use the custom renderer registered in the callbacks above.
| `template_type` | `bar` | **(required)** Progress Bar template.
| `future_time` | *epoch time in millis* | **(required)** The time till which the notification is to be shown
| `timer_color` | *hex value* | The color for the countdown timer
| `show_dismiss_cta` | `true` / `false` | Show the Dismiss button at end of the CTA list### - CountDown Template
| Key | Value | Use |
| --- | --- | --- |
| `we_custom_render` | `true` | Tells the WebEngage SDK to use the custom renderer registered in the callbacks above.
| `template_type` | `timer` | **(required)** CountDown Timer template
| `future_time` | *epoch time in millis* | **(required)** The time till which the notification is to be shown
| `timer_color` | *hex value* | The color for the countdown timer
| `show_dismiss_cta` | `true` / `false` | Show the Dismiss button at end of the CTA list
Sample Key Value Pairs:
Progress Bar
CountDown Timer