question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React native app just warm start

See original GitHub issue

Platform:

  • Android -> 29, 30, 31
  • React-Native -> 0.66.3
  • "@sentry/react-native": "^3.2.6", "@sentry/tracing": "^6.15.0", "@sentry/wizard": "^1.2.15",

@Override public synchronized void onActivityCreated( final @NonNull Activity activity, final @Nullable Bundle savedInstanceState) { setColdStart(savedInstanceState); addBreadcrumb(activity, “created”); startTracing(activity); firstActivityCreated = true; }

LOG Sentry Logger [Log]: [Measurements] Adding measurements to transaction { “app_start_warm”: { “value”: 1232.434 } }

savedInstanceState alway null and my app just warm start

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marandanetocommented, Dec 21, 2021

@dangdo1 I’ve dug into it and found out the root cause, App start was always reported as Warm start but the numbers were correct anyway. PR is in place https://github.com/getsentry/sentry-react-native/pull/1985

1reaction
marandanetocommented, Dec 16, 2021

@dangdo1 its indeed an issue, not sure if on the RN SDK or Android SDK yet, will debug, thanks for the repro.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Programmatically Restart a React Native App - Stack Overflow
If you want to restart just the JS part, then you can use React Native Restart Package. This will work on both Android...
Read more >
How we improved our React Native cold start for Android
A step-by-step guide to improving React Native cold start for the Mattermost Android app.
Read more >
Introducing Hot Reloading - React Native
The idea behind hot reloading is to keep the app running and to inject new versions of the files that you edited at...
Read more >
Already used React Native - Expo Documentation
If you are familiar with React Native, this guide will help you understand the key differences between Expo and React Native.
Read more >
How to create React Native App for Android, iOS and Web ...
Step 1: Init a React Native Application: · Step 2: Run this new app in Android (optional) · Step 3: Web Setup.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found