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 269D510CB9 for ; Thu, 12 Feb 2015 20:48:25 +0000 (UTC) Received: (qmail 39711 invoked by uid 500); 12 Feb 2015 20:48:25 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 39668 invoked by uid 500); 12 Feb 2015 20:48:25 -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 39655 invoked by uid 99); 12 Feb 2015 20:48:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 20:48:24 +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 (nike.apache.org: domain of agrieve@google.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, 12 Feb 2015 20:47:59 +0000 Received: by iecvy18 with SMTP id vy18so14836075iec.13 for ; Thu, 12 Feb 2015 12:47:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=uv4lMvY39RKEvZ4Q1ba6fSeh3DTgDAQN5bDuVlAETFM=; b=i5GNDxA26LcZ8abk7DNrkg28R1/kGqrz0JevMW8Z6HY3RNDRSjJGZ0Sw02TYU85nyc 1446A90huuRJMtDvK4wVoDMgthYgi49dYU89UiWjrAEwhQSS7+CEffY54b1sleKuX21b vOTyutFTSWjllaCbvzgIZs9E4XwK6jDL0olqqnPLX6HtubDQIrJzOrnDfGQpnnxLof87 QdmcjoEirIhiPhban0kB3EpAdlVD+/EMKI/itjRUjh0O8tNZeAfizYdvSYMUBNRca+AV wp5om2W22aBVWnTlSTUx219vLC6mFXze7MZxaytIUVsNJKg+cr+Pw1my7mzTGDHNJ7fu kuRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=uv4lMvY39RKEvZ4Q1ba6fSeh3DTgDAQN5bDuVlAETFM=; b=Fs9SPX38gCaqeENSbd3Lo6UsqJvyIXqjrnDf5IIG+D9fKx/yOOzUWZd+gZbsB4jNWg G8cZecJ3IZDoTaqYtj6P8dXaqOII30ZdM5rS0zQHyV1c8elb4fTjG+bniEaniEesV4ln vVtiDcARtQZwYUgiKphW3QBE3jcKhNtkH2zMA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-type; bh=uv4lMvY39RKEvZ4Q1ba6fSeh3DTgDAQN5bDuVlAETFM=; b=kFPWXPdpGq3kqHiodzkscYpD2bLwFzvtuij4Z30m6jvI3okjIDlBWQ4yVFPAIKO3Ph H3J8UUaDbPuRgY36FVqCI4cgQ9pcSA6Ob4y34DscIpobUdMSjXzqX8+GOPDK1x04qVLT gH3WBifcJSIgXXyE9861Uiv75YC/R0itHNCVdpr1DzmRQIWPdgr7rkGVIUyUZ6FiGZvB fjKjAIA+VfBY63bJ4S8sjI7nysAkJpk2SMIl3Gz2iCfNzDDw7XOfxaqW7klpaXWND1oL reUMHizQZIhGn/DbUiix1ctXP+J5OOvn1qOnngyygr6+/BYOVRSHGj3Kz/RugBiLxfrW +bbg== X-Gm-Message-State: ALoCoQkPSJJWyir55HSwqv+jGG3abr/2xDPX0ZHl/ukA6rCMn6UiaGPyMKKyFJEEg/1lK86Cvmhj X-Received: by 10.50.234.194 with SMTP id ug2mr182871igc.39.1423774032869; Thu, 12 Feb 2015 12:47:12 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.36.3.136 with HTTP; Thu, 12 Feb 2015 12:46:52 -0800 (PST) From: Andrew Grieve Date: Thu, 12 Feb 2015 15:46:52 -0500 X-Google-Sender-Auth: hGq0cnfuNpWbG7p0cCg5xoh-cLU Message-ID: Subject: Maintaining App Data When Switching WebViews To: dev Content-Type: multipart/alternative; boundary=001a1134b562788eb8050eea391e X-Virus-Checked: Checked by ClamAV on apache.org --001a1134b562788eb8050eea391e Content-Type: text/plain; charset=UTF-8 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? --001a1134b562788eb8050eea391e--