Can not activate navigator.storage.persist in Firefox for Android
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
Ler a resposta no contexto 👍 0All Replies (2)
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.
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