Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D9E7E200CA9 for ; Fri, 16 Jun 2017 18:35:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D8B75160BDD; Fri, 16 Jun 2017 16:35:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2AE37160BC0 for ; Fri, 16 Jun 2017 18:35:08 +0200 (CEST) Received: (qmail 70549 invoked by uid 500); 16 Jun 2017 16:35:07 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 70538 invoked by uid 99); 16 Jun 2017 16:35:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2017 16:35:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 288A6C322D for ; Fri, 16 Jun 2017 16:35:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id BDWYWwfe24H2 for ; Fri, 16 Jun 2017 16:35:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D98725F6C3 for ; Fri, 16 Jun 2017 16:35:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 70635E0069 for ; Fri, 16 Jun 2017 16:35:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 43BEC2400B for ; Fri, 16 Jun 2017 16:35:00 +0000 (UTC) Date: Fri, 16 Jun 2017 16:35:00 +0000 (UTC) From: "Jon Hoffman (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12928) Windows UWP shared Local Folder being removed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 16 Jun 2017 16:35:09 -0000 [ https://issues.apache.org/jira/browse/CB-12928?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D160521= 03#comment-16052103 ]=20 Jon Hoffman commented on CB-12928: ---------------------------------- Interesting, if I take the anchor out a different one is added each time. = Might be user specific. I edited to take the anchor out of the link. > Windows UWP shared Local Folder being removed > --------------------------------------------- > > Key: CB-12928 > URL: https://issues.apache.org/jira/browse/CB-12928 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Affects Versions: 6.5.0 > Environment: When running on a Windows 10 platform > Reporter: Jon Hoffman > Assignee: Jesse MacFadyen > Priority: Critical > Labels: windows > > We are writing an application using Ionic 2 for Windows 10. The applicati= on will need to share data between different users on the same machine ther= efore we are using the shared local folder to save the data to as described= in the =E2=80=9CUsing Shared Local=E2=80=9D section of this page: https://= blogs.windows.com/buildingapps/2016/05/24/sharing-your-local-app-data > This method works great and we made changes to the Cordova-Sqlite-Storage= plugin so it will write the database file to the shared local folder. The = problem is when we update our application the shared local folder is remove= d thereby erasing all of the saved data. > I created a native C# application to see if we had the same behavior when= we updated a native application. When we updated the native app the shared= local folder was not removed therefore this is an issue specific to our hy= brid application. > My first thought was maybe the Add-AppDevPackage.ps1 scripts were differe= nt between the native and Ionic 2 application since that is the script that= we used to perform the installation and update. I ran a comparison tool to= compare the scripts from the Ionic2 and native applications however the tw= o files are exactly the same. > I can also verify that the user local folder for the application is not r= emoved when we perform an update however that folder is specific to the ind= ividual user and we can not share data from that folder. Does anyone know w= hy the shared local folder is removed when we perform an update of an Ionic= 2 application? > I put a proof of concept application that simply writes a text file to th= e shared local folder and the application local folder that can be used to = see how the shared local folder is removed when we update the app. The rep= ository is located here: https://github.com/hoffmanjon/Cordova_Windows_UWP_= Shared_Local_Folder and includes a windows plugin to write to the shared l= ocal folder. You will need to set the groups policy as described in the li= nk from the first paragraph of this description to get access to the shared= local folder. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org