Hi,
I am trying to use
Firebase JavaScript SDK Google Authentication with Cordova. I am getting the error
[ERR] Script error. [unknown: 0] when I try to invoke signInWithRedirect. From
this reply on another thread I understand using signInWithRedirect is currently not possible with Cordova (probably due to Cordova serves it through file://), however, that is an old reply, is there any new information on that?
Alternatively, I have also tried using the
REST API user auth, couldn't get it to work, I understand there are methods to do that through Java and NodeJS but how one can do that with JavaScript? I have been searching extensively, there was a way of using old "Database secret", that didn't work with auth parameter, also tried using the method listed on this
stackoverflow question, that didn't work and I also don't think it's a proper way of getting an access token.
I am working on an example tutorial about using Firebase for an IoT use-case, adding additional plugins is not ideal in my case. So far, I have only succeeded in using REST API with "public" database read and write rules.
I will highly appreciate any help in this regard.