Jon Hoffman created CB-13203:
--------------------------------

             Summary: Windows UWP shared Local Folder being removed
                 Key: CB-13203
                 URL: https://issues.apache.org/jira/browse/CB-13203
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-windows
    Affects Versions: 7.0.1
         Environment: When running on the Windows 10 platform
            Reporter: Jon Hoffman
            Assignee: Jesse MacFadyen
            Priority: Critical


We are writing an application using Ionic 2 for Windows 10. The application 
will need to share data between different users on the same machine therefore 
we are using the shared local folder to save the data to as described in the 
"Using Shared Local" section of this page: 
https://blogs.windows.com/buildingapps/2016/05/24/sharing-your-local-app-data

This method works great and we are able to write information to the shared 
local folder however when the application updates, all of the files in the 
shared local folder are removed.  I tested this by updating the 
Cordova-Sqlite-Storage plugin to use the shared local folder and also with a 
proof of concept app 
(https://github.com/hoffmanjon/Cordova_Windows_UWP_Shared_Local_Folder).  I did 
create 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 the hybrid 
application.

I put my proof of concept application that simply writes a text file to the 
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 repository 
is located here: 
https://github.com/hoffmanjon/Cordova_Windows_UWP_Shared_Local_Folder and 
includes a windows plugin to write to the shared local folder. 

You will need to set a group policy to get the shared local folders working. In 
the in the "Using Shared Local" section of this page: 
https://blogs.windows.com/buildingapps/2016/05/24/sharing-your-local-app-data 
it describes how to change the policy and which one to change.
I have updated to Cordova 7.0.1 and built the proof of concept app to see if we 
have the same issue as describe with version 6.5 
(https://issues.apache.org/jira/browse/CB-12928).  After updating the 
application the shared local folder is removed therefore the same issue exists 
with Cordova 7.0.1.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to