File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Firebase/Core/third_party Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 36
36
37
37
@implementation FIRAppEnvironmentUtil
38
38
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" ;
42
44
43
45
// / The file name of the sandbox receipt. This is available on iOS >= 8.0
44
46
static NSString *const kFIRAIdentitySandboxReceiptFileName = @" sandboxReceipt" ;
@@ -159,7 +161,7 @@ + (BOOL)isAppStoreReceiptSandbox {
159
161
// Since checking the App Store's receipt URL can be memory intensive, check the option in the
160
162
// Info.plist if developers opted out of this check.
161
163
id enableSandboxCheck =
162
- [[NSBundle mainBundle ] objectForInfoDictionaryKey: kFIRAppStoreSandboxCheckEnabledKey ];
164
+ [[NSBundle mainBundle ] objectForInfoDictionaryKey: kFIRAppStoreReceiptURLCheckEnabledKey ];
163
165
if (enableSandboxCheck &&
164
166
[enableSandboxCheck isKindOfClass: [NSNumber class ]] &&
165
167
![enableSandboxCheck boolValue ]) {
You can’t perform that action at this time.
0 commit comments