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 26C79FFE1 for ; Wed, 5 Nov 2014 10:54:48 +0000 (UTC) Received: (qmail 86556 invoked by uid 500); 5 Nov 2014 10:54:47 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 86525 invoked by uid 500); 5 Nov 2014 10:54:47 -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 86513 invoked by uid 99); 5 Nov 2014 10:54:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 10:54:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pierre.gaston@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 10:54:41 +0000 Received: by mail-ob0-f175.google.com with SMTP id gq1so341083obb.6 for ; Wed, 05 Nov 2014 02:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=MrbzpmysZkB98zwoQch0+MPRUPKAFJVu7U8QCiz+qqo=; b=yW4MMKbIa779y9HioJF0vl30XwlKguNHbv/Gr4+b/fsi1uoHwKl/yNoxh4zlVhjgzv dbM+Kha0efEoB5tPVBQ9fwBcsYwipqZVWIrJdnr2W/nb0l1SfcXVGoN/6BifziCtJpz/ YurO5+kgCnmHbadYzk8cvovOptQJuXKTink4OVbs/cCyfdOecHpjTAGe+8zzDq3ysP7d FBGNeTQpJJpW4uT1kdBxA24GK0D5C3ona7/3mV1wYqHsIMqowHWSeFIzC+VGn0wuAPUx 3e4NU8M1KMUCVuLCGv5/EMD5Xe0YxH/W+3V/1OjAODXPr911ehWWd/SfNXNvIYckJruo SfJg== X-Received: by 10.202.205.132 with SMTP id d126mr38303943oig.37.1415184815958; Wed, 05 Nov 2014 02:53:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.79.102 with HTTP; Wed, 5 Nov 2014 02:53:15 -0800 (PST) From: Pierre Gaston Date: Wed, 5 Nov 2014 12:53:15 +0200 Message-ID: Subject: Strange javascript queue problem To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=001a1134fa843f310805071a641b X-Virus-Checked: Checked by ClamAV on apache.org --001a1134fa843f310805071a641b Content-Type: text/plain; charset=ISO-8859-1 I'm using cordova 3.5.1 on a 4.1 android device without SystemUI as a kiosk. I don't see anything suspect except that the callback of my plugins calls are trigger on the next call. That is, the first callback doesn't seem to run until I call another method, then on the third call I see the callback of the second one etc... The same app doesn't present this problem when I run it after adding SystemUI back to the device. I didn't managed to find a workaround to this problem until I built a much simpler version (thinking that maybe the problem was related to splash screen, which I don't use, or things like this) of CordovaActivity which seemed fine. I've now switched to crosswalk and the same problem occurred, except that using the same trick doesn't seem to solve the problem. I've now find another workaround in removing in CordovaWebView in exposeJsInterface() the SDK test and forcing this.addJavascriptInterface(exposedJsApi, "_cordovaNative"); I'm however wondering if any of this makes any sense and if you have any hindsight as to what may be happening. Thanks pierre Extra question: in the more general case, I'm wondering if it's safe to use this.addJavascriptInterface(exposedJsApi, "_cordovaNative"); with the crossswalk webview since it uses newer library? --001a1134fa843f310805071a641b--