Skip to content Skip to sidebar Skip to footer

Accessing Firebase Using Cloud Pebble (pebble.js)

I've been trying to figure out a way to access data from firebase to display in a pebble app, using cloud pebble. I'm not quite sure how to do so as I'm relatively new to javascrip

Solution 1:

You can require remote URI's using the following syntax:

require('//cdn.firebase.com/js/client/2.2.9/firebase.js');

The other (more traditional) way to work around this is to copy-paste the source code of the library you want to use at the top of your JavaScript file.

Your best bet to use Firebase for the Pebble is to use the C SDK. There are lots of great examples on how to do this. Here is one. https://github.com/tyhoff/clock

Post a Comment for "Accessing Firebase Using Cloud Pebble (pebble.js)"