Releases: caffeinalab/ti.goosh
Releases · caffeinalab/ti.goosh
v1.4.0
Implementation of the features mentioned in issue #7 (Closed)
New features
Added the following properties
Property | Type | Default | Description |
---|---|---|---|
ongoing | Boolean | false |
Set whether this is an ongoing notification. |
group | String | null |
Set this notification to be part of a group of notifications sharing the same key. |
group_summary | Boolean | null |
Sets whether this notification is the main one for it's group |
when | Number | null |
Set the time that the event occurred. Notifications in the panel are sorted by this time. |
only_alert_once | Boolean | null |
Set this flag if you would only like the sound, vibrate and ticker to be played if the notification is not already showing. |
Check the documentation for more info on how to use this properties
V1.2.0
Added features
- Vibrate pattern
- LED lights
Vibrate pattern
To add a vibrate pattern, instead of sending "vibrate": true
or "vibrate": false
with your payload, you can send "vibrate": [100,50,...]
so an array of integers defining vibration duration and stops duration in milliseconds
LED lights
You can add a lights object along in your payload from the server setting light color as argb, the time the light should be on in milliseconds onMS and the time it should be of as well in milliseconds offMs.
Property | Type | Default | Description |
---|---|---|---|
argb | String | null |
[Required] an ARGB or RGB string of the color to set the LED light to. i.e. #ff00ff or #50ff00ff |
onMs | Number | null |
[Required] The number of milliseconds you want the light to stay on |
offMs | Number | null |
[Required] The number of milliseconds you want it to stay off. The light will loop between on and off |
If any of the above properties are missing, the device default color and frequency will be set