Closed paravena closed 2 years ago
@paravena you can use FIRApp & FIROptions for this.
Here is what you can do (tested in my own project with multiple environements):
@import Firebase;
...
FIROptions* firebaseOptions = [[FIROptions alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"GoogleService-QA-Info" ofType:@"plist"]];
if (firebaseOptions != nil) {
[FIRApp configureWithOptions:firebaseOptions];
[configuration use:[SEGFirebaseIntegrationFactory instance]];
}
Seems to be solved, closing.
I'm not good with Objective-C, but is there a way I can pass a reference to a different plist file, the purpose of this is to support different environments, it looks like this code always goes for the default GoogleService-Info.plist file.
Any ideas are welcome