Skip to content

Commit

Permalink
ref: Fix outdated comment in SessionTracker (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann authored Nov 14, 2022
1 parent 2a547de commit 2dcc3d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Sources/Sentry/SentrySessionTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ - (void)endCachedSession
* regardless of whether your app uses scenes, see
* https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1622956-applicationdidbecomeactive.
*
* We can't start the session in this method because we don't know if a background task or a hybrid
* SDK initialized the SDK. Hybrid SDKs must only post this notification if they are running in the
* foreground because the auto session tracking logic doesn't support background tasks. Posting the
* notification from the background would mess up the session stats.
* Hybrid SDKs must only post this notification if they are running in the foreground because the
* auto session tracking logic doesn't support background tasks. Posting the notification from the
* background would mess up the session stats. Hybrid SDKs must only post this notification if they
* are running in the foreground because the auto session tracking logic doesn't support background
* tasks. Posting the notification from the background would mess up the session stats.
*/
- (void)didBecomeActive
{
Expand Down

0 comments on commit 2dcc3d7

Please sign in to comment.