cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian>
Subject Re: Android Network Plugin Breakout
Date Thu, 06 Jun 2013 22:30:52 GMT

On Thu, Jun 6, 2013 at 5:19 PM, Joe Bowser <> wrote:
> The thing is that this may be for the browser, and not for our plugin.
> The event is being hijacked and used to trigger the JS to check the
> queue to see whether or not it should be firing a JS event off in the
> browser when we do a sendJavascript("foo()"); call in Java.  If this
> is the case, then we can rip out our plugin and not worry about it.
> So, I'd rip it out, see if we can do online/offline events on the
> WebView without cordova, and then if we can, it should be all good.
> 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.
>>>>> 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
>>>>> figured I'd ask for some help. I'm thinking that we move network stuff
>>>>> be a core part of android or perhaps not have to rely on the network
>>>>> somehow.
>>>>> Related jira issue :
>>>>> --
>>>>> Timothy Kim

View raw message