Skip to content

Commit

Permalink
fix ios
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Dec 19, 2023
1 parent c2170b3 commit 76eb78b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions firebase/src/firebase_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ bool SetOption(const char* key, const char* value) {
void Initialize() {
@try {
if(![FIRApp defaultApp]) {
// TODO: options
[FIRApp configure];
if (!firOptions) {
[FIRApp configure];
}
else {
[FIRApp configureWithOptions:firOptions];
firOptions = 0;
}
}
SendSimpleMessage(MSG_INITIALIZED);
} @catch (NSException* e) {
Expand All @@ -102,7 +107,7 @@ void GetInstallationAuthToken() {
if (error != nil) {
SendErrorMessage(error);
} else {
SendSimpleMessage(MSG_INSTALLATION_AUTH_TOKEN, @"id", [result authToken]);
SendSimpleMessage(MSG_INSTALLATION_AUTH_TOKEN, @"token", [result authToken]);
}
}];
} @catch (NSException* e) {
Expand Down

0 comments on commit 76eb78b

Please sign in to comment.