Firebase viable as backend?

Is anyone using Firebase in an app? There’s a REST option and I’ve found some libraries for interacting with Firebase but I don’t see an how one would handle obtaining authentication tokens without JavaScript.

You might want to look at this thread:

https://forums.coronalabs.com/topic/62222-saving-user-progress-between-devices/

Rob

Thanks, Rob. Those were the Firebase libraries I was referring to. Having looked over the Firebase docs, the issue seems to be authentication. Firebase appears to require a JSON Web Token (JWT) to authenticate users via REST requests. These can be generated from one’s own server, or so the docs say. 

It looks as if one should be able fetch the token using JavaScript in a WebView and then capture the token via a Corona network listener. But anyone has tried this, I’d like to hear about it before I spend too much time trying to figure this out. There may even be some Lua authentication library that generates suitable tokens in Corona. That would be better still.

You might want to look at this thread:

https://forums.coronalabs.com/topic/62222-saving-user-progress-between-devices/

Rob

Thanks, Rob. Those were the Firebase libraries I was referring to. Having looked over the Firebase docs, the issue seems to be authentication. Firebase appears to require a JSON Web Token (JWT) to authenticate users via REST requests. These can be generated from one’s own server, or so the docs say. 

It looks as if one should be able fetch the token using JavaScript in a WebView and then capture the token via a Corona network listener. But anyone has tried this, I’d like to hear about it before I spend too much time trying to figure this out. There may even be some Lua authentication library that generates suitable tokens in Corona. That would be better still.