diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bd5026bf47..61ae9eae080 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +- Prewarmed app start detection (#2151) + ## 7.25.0 ### Features diff --git a/Sources/Sentry/SentryAppStartTracker.m b/Sources/Sentry/SentryAppStartTracker.m index 328ef6f3f70..ab4347acc2f 100644 --- a/Sources/Sentry/SentryAppStartTracker.m +++ b/Sources/Sentry/SentryAppStartTracker.m @@ -47,7 +47,8 @@ + (void)load // The OS sets this environment variable if the app start is pre warmed. There are no official // docs for this. Found at https://eisel.me/startup. Investigations show that this variable is // deleted after UIApplicationDidFinishLaunchingNotification, so we have to check it here. - isActivePrewarm = [[NSProcessInfo processInfo].environment[@"ActivePrewarm"] isEqual:@"1"]; + isActivePrewarm = + [[NSProcessInfo processInfo].environment[@"ActivePrewarm"] isEqualToString:@"1"]; } - (instancetype)initWithCurrentDateProvider:(id)currentDateProvider