In the chrome app I am actually forcing websockets with:
Firebase.INTERNAL.forceWebSockets();
This solved some issue awhile back.
I am assuming a polyfill would work. One of the challenges is the chrome.storage.local is async and localStorage is sync.
So far my app seems to be working. I am sure it may break if I tried to turn some security features on? The issue is that pesky error shows up every time.
Also, when I use the firebase.js library for authorization from a chrome app I ran into some issues. I could not do the authorizeWithOAuthPopup. I had to auth directly with Github and then use authorizeWithOAuthToken. So from the chrome app I have to do both of these things. It works, but I also get this error: before unload is not available in packaged apps.
What is the best library to use when building a Chrome APP? The JavaScript library? or should I be trying to use some firebase library that was built for Android or something?