[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150574#comment-15150574
 ] 

ASF GitHub Bot commented on CB-9393:
------------------------------------

Github user jcesarmobile commented on the pull request:

    https://github.com/apache/cordova-docs/pull/498#issuecomment-185230674
  
    I think this should be added too:
    
    `@Override
        public void onDestroy() {
            if (this.webInterface!=null) {
                this.webInterface.handleDestroy();
            }
            super.onDestroy();
        }`
    
    If I don't add it, when I use navigator.app.exitApp(); I get an ugly 
message like this:
    "MainActivity has leaked IntentReceiver 
org.apache.cordova.engine.SystemWebViewEngine$2@e41c27f that was originally 
registered here. Are you missing a call to unregisterReceiver()?..."


> Embedded use case is undocumented for Cordova-Android 4.0.x
> -----------------------------------------------------------
>
>                 Key: CB-9393
>                 URL: https://issues.apache.org/jira/browse/CB-9393
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 4.0.1
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>             Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to