You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/18 13:38:12 UTC

[GitHub] [cordova-android] 8bhsolutions opened a new issue #851: excludeFromRecents="true" causes app to be killed on Android 9

8bhsolutions opened a new issue #851: excludeFromRecents="true" causes app to be killed on Android 9
URL: https://github.com/apache/cordova-android/issues/851
 
 
   # Bug Report
   On Android 9 (sdk 28), when app has the android:excludeFromRecents="true" for the activity, when you opened YouTube (or other apps), the cordova app is killed.
   
   ## Problem
   The app is terminated. No error is shown in logcat
   
   ### What is expected to happen?
   The app should not be impacted
   
   
   ### What does actually happen?
   The app process is killed
   
   
   ## Information
   After cloning the repo (provided below), run the following commands on the root directory to generate an android apk
   
   ```
   npm install
   ionic cordova build android
   ```
   Then deploy apk on real device
   
   **Steps**
   
   1. Start the app. (NOTE - The splash screen is run on new instance)
   2. Once app is started. Goto app launcher
   3. Launch YouTube app
   4. Go back to the app - via app launcher (since the app is excluded from recent list). Notice the app is a new instance.
   
   -----
   
   No errors/exceptions in logcat.
   
   
   
   -----
   
   The bug is more obvious if you include https://github.com/katzer/cordova-plugin-background-mode plugin to the source, because the foreground notification associated with the app is removed when the app is killed.
   
   I purposely choose to not include the background mode plugin in the sample project to isolate the issue.
   
   ### Command or Code
   I have created a blank Ionic (cordova based) project to demonstrate the bug/
   
   https://github.com/8bhsolutions/test-excludeFromRecents
   
   
   ### Environment, Platform, Device
   Android 9
   Real device - Samsung S9+ running latest Android 9
   
   
   ### Version information
   
   Ionic:
   
      Ionic CLI          : 5.2.3
      Ionic Framework    : ionic-angular 3.9.5
      @ionic/app-scripts : 3.2.2
   
   Cordova:
   
      Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
      Cordova Platforms : android 8.1.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 4 other plugins)
   
   Utility:
   
      cordova-res : 0.8.0
      native-run  : 0.2.8
   
   System:
   
      Android SDK Tools : 26.1.1 
      NodeJS            : v10.16.0
      npm               : 6.9.0
      OS                : Windows 10
   
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org