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.

Android app will restart when I back to desktop and click the app icon

See original GitHub issue

Hi! I use the react-native 0.28.0 Android int the Mac,the problem will be appear when I release the android app and install the phone .When I was operating app for some time, back to the desktop to click on the app icon, app will be re opened and back to the first page of app. I do not know whether the react-native or the other class libraries cause this problem. This is my pakage.json:

 {
 "name": "FasApp",
  "version": "0.0.1",'
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "dev": "JS_DIR=`pwd`; cd node_modules/react-native; npm run start -- --root $JS_DIR  --reset-cache",
    "release": "rm -rf $TMPDIR/react-*; rm ios/main.jsbundle; react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --assets-dest ios/",
    "test": "jest"
  },
  "dependencies": {
    "backo2": "^1.0.2",
    "co": "^4.6.0",
    "component-bind": "^1.0.0",
    "component-emitter": "^1.2.1",
    "dateformat": "^1.0.12",
    "events": "^1.1.0",
    "flux": "^2.1.1",
    "indexof": "0.0.1",
    "json-stringify-safe": "^5.0.1",
    "keymirror": "^0.1.1",
    "lodash": "^4.13.1",
    "moment": "^2.13.0",
    "mx-artifacts": "^0.2.2",
    "numeral": "^1.5.3",
    "qs": "^6.2.0",
    "react": "^15.1.0",
    "react-addons-pure-render-mixin": "^15.1.0",
    "react-native": "^0.28.0",
    "react-native-alphabetlistview": "^0.2.0",
    "react-native-device-info": "^0.9.3",
    "react-native-dismiss-keyboard": "^1.0.0",
    "react-native-extra-dimensions-android": "^0.17.0",
    "react-native-fs": "^1.5.1",
    "react-native-invertible-scroll-view": "^1.0.0",
    "react-native-qiniu": "^0.1.0",
    "react-native-share": "^1.0.11",
    "react-native-swipeout": "^2.0.12",
    "react-native-vector-icons": "^2.0.3",
    "react-native-viewpager": "^0.2.11",
    "react-timer-mixin": "^0.13.3",
    "realm": "^0.13.2"
  },
  "devDependencies": {
    "jest-cli": "^0.9.2"
  },
  "jest": {
    "rootDir": "./",
    "scriptPreprocessor": "<rootDir>/node_modules/react-native/jestSupport/preprocessor.js",
    "setupEnvScriptFile": "<rootDir>/node_modules/react-native/jestSupport/env.js",
    "testPathIgnorePatterns": [
      "/node_modules/",
      "packager/react-packager/src/Activity/"
    ],
    "testFileExtensions": [
      "js"
    ],
    "unmockedModulePathPatterns": [
      "promise",
      "source-map"
    ]
  }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:14
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
fab1ancommented, Jul 11, 2016

There’s in an option “don’t keep activities” in developer-options of your phone. Did you enable that?

2reactions
satya164commented, Jul 5, 2016

Are you using a low memory Android phone?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android app restarts when opened by clicking app icon
Hi, the launchMode solved my problem. Recently, I have a webview. When I minimized the app and click the icon again, it somehow...
Read more >
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 are my apps flashing then going back to the home screen ...
I've restarted my phone and reset my setting but nothing will work. How do I fix it ?
Read more >
Fix an Android device that freezes or won't respond
Restart your phone​​ If your phone is frozen with the screen on, hold down the power button for about 30 seconds to restart....
Read more >
Android: Icons Disappear from Home or Launcher
2. Reset the Home Screen Launcher · Go to “Settings” > “Apps & notifications” > “App info“. · Select the app that handles...
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