Skip to content

Commit 6a8d436

Browse files
authored
Modified FirebaseAppStoreURLCheckEnabled Key. (#554)
1 parent 69b892b commit 6a8d436

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Firebase/Core/third_party/FIRAppEnvironmentUtil.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636

3737
@implementation FIRAppEnvironmentUtil
3838

39-
/// A key for the Info.plist to enable or disable checking if the App Store is running in a sandbox,
40-
/// which would be true while running on TestFlight.
41-
static NSString *const kFIRAppStoreSandboxCheckEnabledKey = @"FirebaseAppStoreSandboxCheckEnabled";
39+
/// A key for the Info.plist to enable or disable checking if the App Store is running in a sandbox.
40+
/// This will affect your data integrity when using Firebase Analytics, as it will disable some
41+
/// necessary checks.
42+
static NSString *const kFIRAppStoreReceiptURLCheckEnabledKey =
43+
@"FirebaseAppStoreReceiptURLCheckEnabled";
4244

4345
/// The file name of the sandbox receipt. This is available on iOS >= 8.0
4446
static NSString *const kFIRAIdentitySandboxReceiptFileName = @"sandboxReceipt";
@@ -159,7 +161,7 @@ + (BOOL)isAppStoreReceiptSandbox {
159161
// Since checking the App Store's receipt URL can be memory intensive, check the option in the
160162
// Info.plist if developers opted out of this check.
161163
id enableSandboxCheck =
162-
[[NSBundle mainBundle] objectForInfoDictionaryKey:kFIRAppStoreSandboxCheckEnabledKey];
164+
[[NSBundle mainBundle] objectForInfoDictionaryKey:kFIRAppStoreReceiptURLCheckEnabledKey];
163165
if (enableSandboxCheck &&
164166
[enableSandboxCheck isKindOfClass:[NSNumber class]] &&
165167
![enableSandboxCheck boolValue]) {

0 commit comments

Comments
 (0)