[Suggestion] NEW Chrome Packaged Apps

Discussion and feedback on Construct 2

Post » Mon Feb 03, 2014 5:05 am

So I'm back at the hobby/business of making games, though I'm a little rusty. This is some background info on why this suggestion is needed.

Contruct 2 creates the the legacy version of the chrome packaged app. So I decided to force my game to be a *new chrome app by changing the manifest and adding a background script. I put these links in the dropbox.

Dropbox to manifest and main js

Now when running test on my games it loads up as New chrome app in its own process and runs i think at its best.



until... Local Storage is used.. that crashes my little experiment. New Chrome apps cant use Local storage, they have to use chrome.storage api because of changes to the security and design principles of packaged apps. So.. We need...

Quick solution
1. WebStorage plugin needs a property option to change the storage engine from LocalStorage to chrome.storage.sync or this could be done automatically by the exporter when choosing chrome Web store. This will benefit games greatly because data from games will be synced from device to device, not to mention all the other benefits of being a New Packaged App. Then Construct 2 should create New packaged apps for the chrome web store not legacy ones.

Full Solution
2. It would be great for all of the New chrome apis to be included in a single plugin or just the ones that benefit game design. I know that's a lot to ask. I'll try to help but i have to re-learn javascript just about.

Chrome API index
B
16
S
1
G
1
Posts: 17
Reputation: 1,857

Post » Wed Feb 05, 2014 10:46 pm

After doing some research.. New Chrome App can use IndexDB api which is what Construct 2 uses for its game save system. But the WebStorage Object uses LocalStorage Api which breaks a New Chrome App. So if the WebStorage Object could create IndexDB(the same as the Game Save system) in addition to LocalStorage for compatibility. I think that would be great for developers wishing to migrate from LocalStorage to the superior IndexDB.
B
16
S
1
G
1
Posts: 17
Reputation: 1,857


Return to Construct 2 General

Who is online

Users browsing this forum: disneycom2, kazdalugur and 9 guests