Use the WidgetKit API's in Titanium. Note: You can create widgets without this module. This one is only necessary for advanced widget communication, e.g. triggering a widget refresh from the companion app.
import TiWidgetKit from 'ti.widgetkit';
TiWidgetKit.reloadAllTimelines();
MIT
Hans Knöchel