Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95D90172A1 for ; Tue, 31 Mar 2015 17:19:38 +0000 (UTC) Received: (qmail 28361 invoked by uid 500); 31 Mar 2015 17:19:38 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 28324 invoked by uid 500); 31 Mar 2015 17:19:38 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 28306 invoked by uid 99); 31 Mar 2015 17:19:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 17:19:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EECFBE17F5; Tue, 31 Mar 2015 17:19:37 +0000 (UTC) From: thehuijb To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-android pull request: solves CB-8768 issue where onActivit... Content-Type: text/plain Message-Id: <20150331171937.EECFBE17F5@git1-us-west.apache.org> Date: Tue, 31 Mar 2015 17:19:37 +0000 (UTC) Github user thehuijb commented on a diff in the pull request: https://github.com/apache/cordova-android/pull/171#discussion_r27500998 --- Diff: framework/src/org/apache/cordova/CordovaWebViewImpl.java --- @@ -500,6 +500,7 @@ public void onPageFinishedLoading(String url) { clearLoadTimeoutTimer(); + cordova.onCordovaInit(pluginManager); --- End diff -- Applied your suggestions, please review once more. thanks in advance > On 31 Mar 2015, at 16:13, agrieve wrote: > > In framework/src/org/apache/cordova/CordovaWebViewImpl.java : > > > @@ -500,6 +500,7 @@ public void onPageFinishedLoading(String url) { > > > > clearLoadTimeoutTimer(); > > > > + cordova.onCordovaInit(pluginManager); > I'm not sure it makes sense to wait until onPageFinished to dispatch onCordovaInit. Why not dispatch at the end of the .init() function? > > If the concern is that you want to be able to communicate with the JS, I don't think onPageFinished guarantees that. Instead, you should have your plugin wait for an exec() to come in from the JS in order to communicate with it on start-up. > > — > Reply to this email directly or view it on GitHub . > --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org