Skip to content

Commit ea8cfab

Browse files
authored
App distribution add bundle header (#6346)
* Add x-ios-bundle-identifier to list releases for restricted api keys * Update changelog * Terminate changelog statements with periods
1 parent 424a587 commit ea8cfab

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

FirebaseAppDistribution/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Unreleased
22
- [changed] Updated header comments (#6321).
3+
- [fixed] Bug for customers with restricted api keys unable to fetch releases.
34

45
# v0.9.0
56
- Initial beta release.

FirebaseAppDistribution/Sources/FIRFADApiService.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@"-/testerApps/%@/installations/%@/releases";
2727
NSString *const kInstallationAuthHeader = @"X-Goog-Firebase-Installations-Auth";
2828
NSString *const kApiHeaderKey = @"X-Goog-Api-Key";
29+
NSString *const kApiBundleKey = @"X-Ios-Bundle-Identifier";
2930
NSString *const kResponseReleasesKey = @"releases";
3031

3132
@implementation FIRFADApiService
@@ -73,6 +74,7 @@ + (NSMutableURLRequest *)createHTTPRequest:(NSString *)method
7374
[request setHTTPMethod:method];
7475
[request setValue:authTokenResult.authToken forHTTPHeaderField:kInstallationAuthHeader];
7576
[request setValue:[[FIRApp defaultApp] options].APIKey forHTTPHeaderField:kApiHeaderKey];
77+
[request setValue:[NSBundle mainBundle].bundleIdentifier forHTTPHeaderField:kApiBundleKey];
7678
return request;
7779
}
7880

0 commit comments

Comments
 (0)