Discussion:
[Crosswalk-help] Move localstorage from Crosswalk to original WebView
Martin Buchalik
2017-09-23 09:30:24 UTC
Permalink
Hi,

since Crosswalk isn't actively maintained anymore, developers need to switch to the original Android WebView sooner or later.
Many apps rely on localstorage, Cookies or similar. When removing Crosswalk, none of them can be accessed anymore.
My question: Is there any way to move the data back to the original WebView? So the opposite of this PR: https://github.com/crosswalk-project/crosswalk/pull/3146

To me, this is a huge problem: I know that some day, Crosswalk simply won't work anymore. But I cannot remove it since all my user's data will be lost. Is there maybe a plugin or setting I am missing that could help?

I really hope we can find a solution for this problem! Looking forward to your reply. :-)
Balestrieri, Francesco
2017-09-26 07:56:18 UTC
Permalink
Hi,

We totally understand your problem. As you probably already figured out, one would need to release an intermediate version of the app that copies Crosswalk’s user folders to the corresponding location used by the WebView, and later a version of the app without Crosswalk (with the obvious risk that people who miss the intermediate update lose their data). Unfortunately, we are not able to implement this functionality in Crosswalk and make a new release, so you would need to take care of this in your app, e.g. in MainActivity.java. The code in the PR below gives you an idea on how to do it.

I hope this helps.

Kind regards,

Francesco

On 23/09/2017, 12.30, "Crosswalk-help on behalf of Martin Buchalik" <crosswalk-help-***@lists.crosswalk-project.org on behalf of ***@martin-buchalik.de> wrote:

Hi,

since Crosswalk isn't actively maintained anymore, developers need to switch to the original Android WebView sooner or later.
Many apps rely on localstorage, Cookies or similar. When removing Crosswalk, none of them can be accessed anymore.
My question: Is there any way to move the data back to the original WebView? So the opposite of this PR: https://github.com/crosswalk-project/crosswalk/pull/3146

To me, this is a huge problem: I know that some day, Crosswalk simply won't work anymore. But I cannot remove it since all my user's data will be lost. Is there maybe a plugin or setting I am missing that could help?

I really hope we can find a solution for this problem! Looking forward to your reply. :-)

_______________________________________________
Crosswalk-help mailing list
Crosswalk-***@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help


---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Martin Buchalik
2017-09-26 09:56:57 UTC
Permalink
Hi,

thank you for your reply :-) I was hoping there might already be a plugin or similar to do this. To me as a hybrid app developer without much experience in working with the WebView files and its structure, this is a pretty hard task to do. (On https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/issues/154 you can see a small discussion we had about this topic.)

Did I understand it correctly that there is also no plugin available that could potentially delete the old files used by Crosswalk (so to clean the project up after Crosswalk has been removed)? This would at least allow me to do a "clean" removal of Crosswalk - otherwise, some files will remain on the users' devices until the app is deleted. (Which I personally don't really like since it uses storage space that simply isn't needed anymore.)

Is there maybe a list of the files that will remain on the device even after Crosswalk is removed? When releasing a new version without Crosswalk, I could probably use something like Cordova's file plugin to remove them. (OK I hope the file plugin is able to access these directories...)


Really looking forward to your reply!

(And I hope I have replied to the right mail address - haven't used the Crosswalk mailing list so far. )


--- Ursprüngliche Nachricht ---
Von: "Balestrieri, Francesco" <***@intel.com>
Datum: 26.09.2017 09:56:18
An: Martin Buchalik <***@martin-buchalik.de>, "crosswalk-***@lists.crosswalk-project.org" <crosswalk-***@lists.crosswalk-project.org>
Betreff: Re: [Crosswalk-help] Move localstorage from Crosswalk to original WebView
Post by Balestrieri, Francesco
Hi,
We totally understand your problem. As you probably already figured out,
one would need to release an intermediate version of the app that copies
Crosswalk’s user folders to the corresponding location used by the WebView,
and later a version of the app without Crosswalk (with the obvious risk that
people who miss the intermediate update lose their data). Unfortunately,
we are not able to implement this functionality in Crosswalk and make a new
release, so you would need to take care of this in your app, e.g. in MainActivity.java.
The code in the PR below gives you an idea on how to do it.
I hope this helps.
Kind regards,
Francesco
On 23/09/2017, 12.30, "Crosswalk-help on behalf of Martin Buchalik"
Hi,
since Crosswalk isn't actively maintained anymore, developers need to
switch to the original Android WebView sooner or later.
Many apps rely on localstorage, Cookies or similar. When removing Crosswalk,
none of them can be accessed anymore.
My question: Is there any way to move the data back to the original WebView?
So the opposite of this PR: https://github.com/crosswalk-project/crosswalk/pull/3146
To me, this is a huge problem: I know that some day, Crosswalk simply
won't work anymore. But I cannot remove it since all my user's data will
be lost. Is there maybe a plugin or setting I am missing that could help?
I really hope we can find a solution for this problem! Looking forward
to your reply. :-)
_______________________________________________
Crosswalk-help mailing list
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Loading...