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()?..."


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to