Skip to content

Commit aa14b5c

Browse files
FIS: disable Auth token auto fetch (#5656)
* FIS: disable Auth token auto fetch * Punctuation * Changelog * Don't fail tests when no default app was created * style
1 parent c2fbc77 commit aa14b5c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

FirebaseInstallations/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
NOTE: Installation Identifiers created by previous versions will be reset on Mac OS which can affect e.g. A/B Testing variants or debug device targeting for Firebase Messaging.
55
iOS, TVOS and watchOS Installation Identifiers will not be affected. (#5603)
66
- [changed] More readable server error console messages. (#5654)
7+
- [changed] Auth Token auto fetch disabled. (#5656)
78

89
# v1.2.0 -- M69
910

FirebaseInstallations/Source/Library/FIRInstallations.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ - (instancetype)initWitAppOptions:(FIROptions *)appOptions appName:(NSString *)a
8989
projectID:appOptions.projectID
9090
GCMSenderID:appOptions.GCMSenderID
9191
accessGroup:appOptions.appGroupID];
92+
93+
// `prefetchAuthToken` is disabled due to b/156746574.
9294
return [self initWithAppOptions:appOptions
9395
appName:appName
9496
installationsIDController:IDController
95-
prefetchAuthToken:YES];
97+
prefetchAuthToken:NO];
9698
}
9799

98100
/// The initializer is supposed to be used by tests to inject `installationsStore`.

FirebaseInstallations/Source/Tests/Integration/FIRInstallationsIntegrationTests.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ - (void)setUp {
5454

5555
- (void)tearDown {
5656
// Delete the installation.
57-
[self.installations deleteWithCompletion:^(NSError *_Nullable error) {
58-
XCTAssertNil(error);
57+
[self.installations deleteWithCompletion:^(NSError *_Nullable error){
5958
}];
6059

6160
// Wait for any pending background job to be completed.

0 commit comments

Comments
 (0)