Skip to content

Releases: caffeinalab/ti.goosh

v1.4.0

07 Sep 07:37
Compare
Choose a tag to compare

Implemented methods to cancel received notification:

cancelAll()

cancelWithTag(String tag, int id)

cancel(int id)

Implementation of the features mentioned in issue #7 (Closed)

11 Aug 07:59
Compare
Choose a tag to compare

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

04 Aug 10:29
Compare
Choose a tag to compare

Added features

  1. Vibrate pattern
  2. 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

v1.1.0

01 Aug 10:19
Compare
Choose a tag to compare

Closed #3