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.

Restarts App even when it is running

See original GitHub issue


When I click on a notification when the app is in the foreground or even background, it restarts the application losing all previous state.

I see it prints this when the app ‘restarts’: JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.

Is this intended?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

fabioloreggiancommented, Sep 20, 2017

Add android:launchMode="singleTask" to your app’s activity section. This tells the Android operating system to launch the app with a new instance of the activity, or use an existing one. Without this your app will launch multiple instances of itself which is no good.

This worked

EddyVerbruggencommented, Sep 20, 2017


Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do my Android apps restart all over again if I minimize ...
Hi. It can be possible that 'deep clean' option is enabled by mistake on your phone. What deep clean does is, whenever you...
Read more >
Why does my app restart whenever I come back to it ... - Reddit
Anytime I go to another application (even to take a photo or text someone) from Pokemon GO, PoGO restarts at the Niantic screen...
Read more >
Do all background apps really restart when you reboot iPhone?
When you shut down a phone all apps are shut down also. The app switcher screen shows apps that you have used; it...
Read more >
Does Your Android Phone Keep Restarting? 7 Ways to Fix It
If your Android phone restarts constantly, it might be a dodgy app, an overheating issue, or something else entirely.
Read more >
Why does my app restart, even though it is already running ...
After days of fiddling and googling I finally noticed that it depends on where the app is initially started from (meaning the first...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found