Skip to content

Incorrect cold app start measurement when the app was opened after recev push notification receive #3567

Closed

Description

@zhukic

Integration

sentry-android

Build System

Gradle

AGP Version

8.4.2

Proguard

Enabled

Version

7.9.0

Steps to Reproduce

Hi!

We noticed incorrect values for app.start.cold metric, and we managed to reproduce it if a push notification is received and the app is opened after some time(minutes or hours).

11

I see that it duplicates the #3538 #3329 issues, but I decided to create a separate one because it may be a different case.

I also see that some fix is on the way, and it would be good to know if the fix also solves my problem.

Sentry Gradle plugin version: 4.6.0
Performance V2 enabled

Thank you!

Expected Result

Incorrect app.start.cold values.

Actual Result

Do not report cold app start in such cases?

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 11, 2024
  2. kahest commented on Jul 11, 2024

    @kahest
    Contributor

    Hey @zhukic thanks for reporting, especially with this important detail

    reproduce it if a push notification is received and the app is opened after some time(minutes or hours).

    As you mention, the open PR might fix this issue as well 👍
    Out of curiosity - did you try/manage to reproduce this with Performance V2 turned off?

    cc @stefanosiano @markushi

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 11, 2024
  4. zhukic commented on Jul 11, 2024

    @zhukic
    Author

    @kahest

    did you try/manage to reproduce this with Performance V2 turned off?

    I haven't tried to reproduce with V2 turned off but I can try if it may help somehow

  5. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 11, 2024
  6. kahest commented on Jul 12, 2024

    @kahest
    Contributor

    @zhukic thanks for offering, no need atm - we'll try ourselves and get back to you in case we need more info

  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 12, 2024
  8. self-assigned this
    on Jul 12, 2024
  9. zhukic commented on Jul 22, 2024

    @zhukic
    Author

    @kahest Hi!
    I see that you merged the fix. Could you please explain how the SDK will behave in case of push notifications after the fix?

  10. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 22, 2024
  11. kahest commented on Jul 22, 2024

    @kahest
    Contributor

    @zhukic the fix detects if the app was (likely) started in background (e.g. via PN) before it actually became active, and in that case reports the transaction as a screen load event without incorrect app start timings. We plan to ship a hotfix release for this soon and would appreciate feedback.

  12. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 22, 2024
  13. stefanosiano commented on Jul 25, 2024

    @stefanosiano
    Contributor

    @zhukic The fix was released in the SDK version 7.12.1.
    Please, reopen this issue in case the problem persists.

  14. ghost added
    BugIssue type
    on Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions