Closed ghost closed 6 years ago
I'm not sure if it is required or not
The Google App ID that is used to uniquely identify an instance of an app.
but it doesn't list any required values. It is inside the google-services.json
which you can put into /app/assets/android
BTW: I think this is more an issue of firebase-core
yea didnt know where to put it, since configure()
works fine without it. Only when I call the fcm stuff it errors.
Btw does that work out of the box? Putting in /app/assets/android/google-services.json
?
https://github.com/hansemannn/titanium-firebase#installation
my test setup:
I just use configure()
with no parameter and it will use the file
oh thats great, i wasnt aware. Since iOS has this file
property, i assumed Android didnt support it.
I hadnt even seen the repository you linked. That json-file feature should be put at firebase.core
's readme since it's about the configure()
method.
The firebase.core
readme literally said "configure(): Configure Firebase without additional parameters."
Another confusing thing is that the linked repo does not mention the file
property. I would suggest removing as much of the explanation there and put it under firebase.core
.
I'll see if i can create a PR but it'll likely be tomorrow
I'm just implementing the file
parameter as we speak :grinning:
I somehow need a placeholder value for the
applicationID
property in order for Android not to throw an error:Error:
I am not sure why it is required, but FCM functions without it as I've just put a string placeholder.
Fix suggestion: do not make it required at all.
Feature suggestion: implement
google-services.json
(Android config file from Firebase) for thefile
configuration property. That solves any of these issues since you are required to pass the whole config file. I could easily write a parser for javascript, but that cannot go in the module.