Welcome Guest Search | Active Topics | Sign In | Register

js: requestQuota Options
Michael B.
Posted: Monday, July 27, 2015 9:22:28 AM
Rank: Newbie
Groups: Member

Joined: 7/27/2015
Posts: 1
Hi,

i tryed the webbrowser for .NET and determined that offline storage doesn't work.

I do the following
Quote:

navigator.webkitPersistentStorage.requestQuota(1024 * 1024 * 250, function (grantedBytes) {

alert(grantedBytes);
});


But "grantedBytes" is always 0. I Also can't find any handle in the C# browser component for this.

Is there any posibility to use offline storage?
eo_support
Posted: Monday, July 27, 2015 3:53:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

Please download the latest build from our download page. We have just posted a new build that added support to this. In the new build you must:

1. Handle the WebView's RequestPermissions event;
2. Inside the event handler check whether e.Permissions == Permissions.StorageQuota. If true, then e.Quota would contain the amount requested;
3. Call e.Allow() to allow the quota request (or Deny if you do not want to grant the request);

After these steps you should see the granted amount in your script.

Please feel free to let us know if you still have any questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.