I am working on a Pebble watch app that uses Firebase.js. I managed to run Firebase.js on Android (by including it in pebble-js-app.js similar to https://github.com/tyhoff/clock) but no luck on IOS. I got this error when I simply include Firebase.js in my pebble-js-app.js:
TypeError: undefined is not a function (evaluating 'window.addEventListener("load",c,!1)')
user agent on IOS (not working): Ejecta/1.4 (iPhone6,1; OS 8.4.1)
user agent on Android(working): userAgent is Mozilla/5.0 (Linux; Android 5.0.1; SGH-I337M Build/LRX22C; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.121 Mobile Safari/537.36
It seems Firebase is calling something on browser that is not supported. Is there a workaround for this?