Can the Pebble timeline be used via Pebble.js?

114 Views Asked by At

It's unclear whether the Timeline features are supported when using only the pebble.js approach (e.g. no C code). Can anyone comment?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, you can use Pebble.js to call regular PebbleKitJS functions (e.g., Pebble.getTimelineToken).

As far as pushing pins to the timeline, pins are pushed via the timeline Web API, which means you can use the ajax function to make a request to the API from within Pebble.js.