You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/01/26 08:08:56 UTC

[GitHub] [cordova-plugin-inappbrowser] coolscene opened a new issue #845: Issue when app has an active foreground service

coolscene opened a new issue #845:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/845


   # Bug Report
   
   ## Problem
   If the app has an active foreground service, when the user closes the app in android task switcher, after having opened the inappbrowser once, the whole app is force closed which stops the active foreground service.
   ### What is expected to happen?
   The active foreground service should not be stopped when closing the app window.
   
   
   ### What does actually happen?
   The active foreground service is stopped when closing the app window.
   
   
   ## Information
   I solved the issue by destroying the webview (inAppWebView.destroy()) in closeDialog method. I don't understand why this is not the default behavior? Closing the dialog just replaces the webview contents with an "about:blank" page and keeps it in memory. If there is a reason for the webview not being destroyed, there should be at least a way to destroy the webview on dialog close to avoid this issue.
   
   
   ### Environment, Platform, Device
   Android 10, Android Emulator
   
   
   ### Version information
   Cordova 10.0.0, Cordova Android 9.0.0, Windows 10 2004, Android Studio 4.1.1, up-to-date Android SDK
   
   
   ## 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



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