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 196F410053 for ; Thu, 6 Jun 2013 22:33:57 +0000 (UTC) Received: (qmail 82688 invoked by uid 500); 6 Jun 2013 22:33:56 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 82669 invoked by uid 500); 6 Jun 2013 22:33:56 -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 82661 invoked by uid 99); 6 Jun 2013 22:33:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 22:33:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian.leroux@gmail.com designates 209.85.223.180 as permitted sender) Received: from [209.85.223.180] (HELO mail-ie0-f180.google.com) (209.85.223.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 22:33:51 +0000 Received: by mail-ie0-f180.google.com with SMTP id f4so3774337iea.39 for ; Thu, 06 Jun 2013 15:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=DPGvYbjTL9wBw+1+okOnNmFKE8ujIQGfjb7Ul1xpcNs=; b=tvxlPEGOE60azavGriZeD1TqF3vvR0jiHxvanf8M0M74dgJj81Kw0jQ4tQfp+hLEh3 As4sHzTa0NQdM7eWmQ0D7RChYMUzwoCm17P13+tDlGWN7YdmF2prepC/NcQ7/HL/jKAt WlRuekPgzEsF5gkf8KsfCwWsjwBB75qjzKsYPED5i+i5O+TicEerFknD8lx3aq/Ub00c XfV9Y/0CcsmWTXSYwnwF3/rOezLIUhLz8ieUUAzhtYlwL8uEHscEhfyoDrx/YKVGm6V/ Hiaf+p28sOWESxELtWH2TgKktyaXh7hyIyEw6uN6E+ZQleA7VCzkuoEOktXTRiIl6lsJ r8iQ== MIME-Version: 1.0 X-Received: by 10.50.178.145 with SMTP id cy17mr106449igc.21.1370558010244; Thu, 06 Jun 2013 15:33:30 -0700 (PDT) Sender: brian.leroux@gmail.com Received: by 10.50.45.134 with HTTP; Thu, 6 Jun 2013 15:33:30 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Jun 2013 17:33:30 -0500 X-Google-Sender-Auth: lVdD-lucgt3KGTGPWAteevj1gpc Message-ID: Subject: Re: Android Network Plugin Breakout From: Brian LeRoux To: dev@cordova.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org agree to this, but also agree w/ joe that we should try and remove completely (if testing the browser handles correctly 2.3+) On Thu, Jun 6, 2013 at 5:25 PM, Steven Gill wrote: > We should leave network code in core. Maybe this is something we revisit > later on if we want to make network information its own plugin and are > willing to do the changes required to do so (No idea what that would > involve). > > If we aren't ripping it out of Android, we shouldn't rip it out for the > other platforms. > > > On Thu, Jun 6, 2013 at 3:16 PM, Brian LeRoux wrote: > >> Seems simple enough. I find online/offline/pause/resume and other >> events of the app lifecycle to be plausibly core for all platforms. >> >> On Thu, Jun 6, 2013 at 4:44 PM, Joe Bowser wrote: >> > Actually, online/offline has to be core, because it's part of the >> > bridge. We can't rip that out because some platform may need the >> > Online/Offline event bridge. That's a pretty serious gotcha. It's >> > also why it's a problem on Android and not on other platforms. >> > >> > Sorry, I don't have any easy answers for this one. >> > >> > On Thu, Jun 6, 2013 at 2:41 PM, Joe Bowser wrote: >> >> How is this not a problem for the rest of the platforms? That's the >> >> first thing that I'm wondering right now. >> >> >> >> On Thu, Jun 6, 2013 at 2:37 PM, Tim Kim wrote: >> >>> Hey gang, >> >>> >> >>> So I'm trying to rip out the android network plugin, but it appears the >> >>> android exec relies on the network plugin for online/offline events. >> >>> >> >>> >> https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=blob;f=lib/android/exec.js;h=206c09acb6d939b91e28b8813fa7fe318c2a4483;hb=0a5fa1fa255e12625969cef1aaeecd1582e5b389#l117 >> >>> >> >>> I'm not too sure how to cleanly rip out the network plugin stuff from >> >>> cordova js without potentially breaking the online/offline events, so I >> >>> figured I'd ask for some help. I'm thinking that we move network stuff >> to >> >>> be a core part of android or perhaps not have to rely on the network >> plugin >> >>> somehow. >> >>> >> >>> Related jira issue : >> >>> https://issues.apache.org/jira/browse/CB-3509#comment-13677532 >> >>> >> >>> -- >> >>> Timothy Kim >>