Alternative to webstorage?

Discussion and feedback on Construct 2

Post » Tue Dec 16, 2014 9:25 pm

Is there any alternatives to webstorage that use indexdb or chrome.storage to save instead of localstorage? LocalStorage cant be used for a offline chrome packaged app.
B
16
S
1
G
1
Posts: 17
Reputation: 1,857

Post » Wed Dec 17, 2014 3:36 am

This is a known issue. Ashley is has requested google to bring back localstorage for the purpose of legacy software.

Personally I wish him luck, but I have my doubts google is going to. I suspect C2 will just need to adopt indexdb going forward.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Wed Dec 17, 2014 4:20 am

Ok. It seems the save/load objects system in C2 already uses indexdb but webstorage uses localstorage. Chrome.sync is preferred for the packaged apps though. Id be willing to help make an extension for it. Anyone else wanna help code this extension?

I also doubt google will bring localstorage back to package apps because security and it could slow down the browser/os
B
16
S
1
G
1
Posts: 17
Reputation: 1,857

Post » Wed Dec 17, 2014 5:20 am

with this i could complete my 2d side scrolling mmorpg that includes a time traveler class...
B
8
S
2
Posts: 134
Reputation: 1,001

Post » Wed Dec 17, 2014 3:11 pm

I thought about writing a indexdb storage plugin last night, but then I tought about it. It's likely that if google doesn't end up bringing back local storage. Ashley will need to shim WebStorage or make a new plugin anyways. And since I don't have anything coming out for Android soon it's not a big rush for me.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Sat Dec 20, 2014 3:14 pm

Right. its a chrome specific problem right now. I know scirra will have to update webstorage soon. Hopefully they use the Chrome storage sync api because it looks very easy to implement. Ill start on a demo extension to prove it.
B
16
S
1
G
1
Posts: 17
Reputation: 1,857


Return to Construct 2 General

Who is online

Users browsing this forum: Ebriosus and 4 guests