Re: Maintaining App Data When Switching WebViews

2015-02-12 Thread Josh Bavari
Andrew,

Here at Ionic, we've had a few users request something like this. My
approach has been to create a Cordova plugin, that takes the following
steps:

Creates an instance of the original webview
Executes some JS inside the webview that will grab all entries for
localstorage
If Android pre KIT_KAT or more, executed JS calls a JSInterface to pass the
data back to native land
If KIT_KAT or greater, calls evaluateJavascript
Those values are read, and passed back to the original webview
>From there, it'd go through the keys, and add them into the new webview

See this repo for my work in progress:
https://github.com/driftyco/cordova-plugin-local-storage-retrieval

On Thu, Feb 12, 2015 at 1:46 PM, Andrew Grieve  wrote:

> Worth a discussion about this, I think.
>
> If you have an app already launched that uses localstorage/websql, and want
> to switch to xwalk, how can you migrate your data?
>
> What if you want to use system webview for API >= 21 and xwalk only for old
> phones? Then you need to move data in the reverse direction.
>
>
> Idea 1:
> - See if sqlite / localstorage databases are the same format, and provide
> code that migrates db locations
>
> Idea 2:
> - Use wizcorp's multi-window plugin to create a new an off-screen system
> webview, then use post-message to read data out of the old one.
>
> WDYT? Is this a problem we need to solve?
>



-- 
"Clear thoughts produce clear results."
Josh Bavari
Application Developer
Phone: 405-509-9448
Cell: 405-812-0496
Email: jbav...@gmail.com


Re: [DISCUSS] Cordova-Android 4.0.0 Release

2015-01-28 Thread Josh Bavari
Joe and team,

I work for Ionic and I've had some involvement with the Cordova project
since last year. At Ionic, we've released a Crosswalk build using Cordova
Android 4.0 so we can use the cordova crosswalk engine for the ionic
platform.

I've been working with Ian and Andrew on this to gather more understanding
and to get some help along the way. I must say, excellent work, everyone.

As such, we've accumulated quite a bit of users who are actively using
Cordova Android 4.0. Currently, we've had over 10k test trials with it, and
I'm happy to say, mostly it's been smooth.

What I've done is made a fork to adjust a few small things, but for the
most part, we're using 4.0.

I'd love to provide any more feedback that you'd wish.

Thanks again for the awesome work.

On Wed, Jan 28, 2015 at 9:21 AM, Joe Bowser  wrote:

> Hey
>
> So, it's finally here.  I want to see us work more on Pluggable Webviews,
> and adding the API, but I think it's time that we released what we've been
> working on for almost a year to our users.  I know that the API isn't
> exactly the most awesome we can make it, but it works, and I'd rather have
> it out at 80% than it sitting for a few more months in limbo.
>
> Are there any major blocking tasks that would prevent a vote thread that
> anyone knows about, or should we start firing up a release?  I don't think
> we're going to make our January date, but the first week of February isn't
> that terrible.
>
> Thoughts?
>
> Joe
>



-- 
"Clear thoughts produce clear results."
Josh Bavari
Application Developer
Phone: 405-509-9448
Cell: 405-812-0496
Email: jbav...@gmail.com


Re: [Android] MozillaView Update: PoC is working

2014-12-08 Thread Josh Bavari
t; > > > > >
> > > > > > > > This is definitely a very different webview than what we
> > > > > > > > have had currently, and I've had to re-think a lot of how we
> > > > > > > > do things with
> > > > > > > Cordova
> > > > > > > > because of it.  The asynchronous bridge that uses promises
> > > > > > > > is very interesting on GeckoView, as well as how this is
> > > > > > > > properly
> > > > sandboxed.
> > > > > > > > I like it a lot better than how Chrome based web-views are
> > > > > > > > currently
> > > > > > > working
> > > > > > > > with just bolting on an synchronous object.  However, due to
> > > > > > > > time, and because I didn't want to repaint the bike shed
> > > > > > > > again, I kept the basic bridge architecture mostly intact.
> > > > > > > >
> > > > > > > > At any rate, from the initial tests, the bridge works and
> > > > > > > > the plugins are mostly intact.  I override the exec with
> > > > > > > > clobbers, and while I haven't
> > > > > > > run
> > > > > > > > Mobile-Spec against the plugin version, the fact that it
> > > > > > > > fires tells me that the clobbers probably will work.
> > > > > > > >
> > > > > > > > I am really worried about the Splashscreen and how we show
> > > > > > > > and hide the webviews, since this was found to be very
> > > > > > > > brittle when I started to work
> > > > > > > on
> > > > > > > > this.  We should consider having more proper refactoring of
> > > Cordova.
> > > > > > > >
> > > > > > > > At this point, now that we have two webviews, I think we
> > > > > > > > should ramp up
> > > > > > > for
> > > > > > > > a 4.0 final release in January 2015. I don't want to do it
> > > > > > > > now because I can see people getting pissed off that we
> > > > > > > > released 4.0 and then go on vacation.  That said, I'm glad
> > > > > > > > that this exists, since it feels like
> > > > > > > we're
> > > > > > > > finally at the finish line with this feature.
> > > > > > > >
> > > > > > > > Thoughts?
> > > > > > > >
> > > > > > > > Joe
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > <http://www.wizcorp.jp/>Ally Ogilvie Lead Developer - MobDev.
> > > > > > > | Wizcorp Inc. <http://www.wizcorp.jp/>
> > > > > > > -- TECH . GAMING . OPEN-SOURCE
> > > > > > > WIZARDS+ 81 (0)3-4550-1448 |
> > > > Website
> > > > > > > <http://www.wizcorp.jp/> | Twitter
> > > > > > > <https://twitter.com/Wizcorp> | Facebook
> > > > > > > <http://www.facebook.com/Wizcorp> | LinkedIn
> > > > > > > <http://www.linkedin.com/company/wizcorp>
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Carlos Santana
> > > > > > 
> > > > >
> > >
>



-- 
"Clear thoughts produce clear results."
Josh Bavari
Application Developer
Phone: 405-509-9448
Cell: 405-812-0496
Email: jbav...@gmail.com


Starting to work on cordova again - reintroduction

2014-11-18 Thread Josh Bavari
Hey all,

This last January, I worked on getting the Cordova plugin registry updated
to its current form with the help of Steve Gill.

Beginning December 1st, I will begin working for Ionic and I'm wanting to
hop back into contributing to help out with Cordova before then.

I'm going to start with *CB-7246* - Giving the registry website a concept
of people. In this issue it talks about adding user searching, user
packages, and linking basic user information from their user page to their
social profiles to help promote a better community with the plugins.

I'd like to also get more informative documentation about pushing plugins
to the registry. As Steve and I discussed, the current documentation is
somewhat lacking - and having it on the plugin registry makes a lot of
sense.

I'd also like to bring up the topic of including some of the plugman
commands into Cordova CLI. Does anyone else see a need for this?

Finally, from what I've heard from Steve, the integration with alternate
android browsers has come a far way. Is there still any need or want for
help with this issue? I'd love to help in any way I can.

Please let me know your thoughts, and thank you for listening.

-- 
"Clear thoughts produce clear results."
Josh Bavari
Application Developer
Phone: 405-509-9448
Cell: 405-812-0496
Email: jbav...@gmail.com


Introductory Developer Email

2014-01-06 Thread Josh Bavari
Hello fellow Cordova Devs,

I have been using PhoneGap / Cordova for about the last few years and love
that the project is ever evolving. I would like to help contribute to the
Cordova project as well to help give back some of what was freely given to
myself.

Some of my hobbies include mobile development (im guessing you already knew
hybrid apps), coding in Ruby and Javascript, process automation, and
speaking / mentoring others.

I hope to be chatting with many of you and contributing on issues that I
myself find or that others may have an urgent priority for.

Thanks, and may we build a better future.


-- 
"Clear thoughts produce clear results."
Josh Bavari
Application Developer
Phone: 405-509-9448
Cell: 405-812-0496
Email: jbav...@gmail.com