Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Can not activate navigator.storage.persist in Firefox for Android

more options

Hello! I want to use persistant offline storage for my website. When I run following command in console: navigator.storage.persist.then(function(a) {console.log(a)}) in Desktop FireFox browser it prompts me for a permission and console.log prints "true". But when I run this command from Android version there is no permission prompt and the result is "false". Is there some condition I must to satisfy to switch storage to "persisted mode" on Android Firefox version?

Hello! I want to use persistant offline storage for my website. When I run following command in console: navigator.storage.persist.then(function(a) {console.log(a)}) in Desktop FireFox browser it prompts me for a permission and console.log prints "true". But when I run this command from Android version there is no permission prompt and the result is "false". Is there some condition I must to satisfy to switch storage to "persisted mode" on Android Firefox version?

Chosen solution

That was a bug in Firefox for Android. Here is a related issue: https://github.com/mozilla-mobile/fenix/issues/14875 Now it is solved

Read this answer in context 👍 0

All Replies (2)

more options

I found some information about this. According to "Can i use" on date 08 september 2020 (https://caniuse.com/mdn-api_storagemanager) Firefox 79 for Android don't support this feature by default. It must be enabled via internal configuration. So it's not possible to use this feature for a regular site nowadays. May be in future related bugs will be fixed and it will be enabled.

more options

Chosen Solution

That was a bug in Firefox for Android. Here is a related issue: https://github.com/mozilla-mobile/fenix/issues/14875 Now it is solved