Waaard Logo
Managed F/OSS services on Hetzner, OVH and LeaseWeb
Recently Launched 🚀🧑‍🚀
Waaard Logo
Unvalidated Ideas
3 fresh Startup/SaaS ideas in your inbox, every week.
Recently Launched 🚀🧑‍🚀

Device Storage API Quirk in FirefoxOS


It's been a while since this was posted...

Hopefully the information in here is useful to you (if it isn't please get in touch!).
If you want to get the new stuff as soon as it's out though, sign up to the mailing list below.

Join the Mailing list

After purchasing the Flame FFOS reference phone, I set up the App Manager (provided by Mozilla) and have been having a blast debugging and testing my new application (VCFPorter).

I recently ran into some issues using the Device Storage API (https://developer.mozilla.org/en-US/docs/Web/API/Device_Storage_API).

The problem was that I was trying to access internal storage (I don’t have an SD card on the device), but it would always return empty (the cursor would be “done” on the first onsuccess callback).

Turns out the fix was to disable “Share using USB” on the internal storage while I was debugging the app. It was preventing FFOS from accessing the internal storage. (Settings > Media Storage > Share using USB (under internal storage))

Hope this helps someone out!

Like what you're reading? Get it in your inbox