How to disable Store Files On This Device alert in browser (Ionic 3 PWA)

Hey Guys,

When I tried to run my ionic 3 pwa in broswer (i tried with Chrome, Safari, Firefox in Mac OS and Windows), the message Store files on this device was prompted. Is there anyway to hide it? There SQLite database is
created in the app.component.ts. I’m not a web expert, so I’m afraid if it’s right to ask that kind of question here. I compiled that website with ionic cordova build browser --prod and I hosted it with SSL.

Thanks in advance for any assistance you can provide.


1 Like

Then you won’t be using Cordova, correct?

Or perhaps you meant ‘Ionic 3 Hybrid Mobile App’?

Hi @robinyo
yes, it’s ionic 3 hybrid mobile app. It is working well in iOS and Android devices. Only showing that message in browsers.

1 Like

You can solve this error by removing cordova-plugin-file in browser build (different config.xml for different targets).
Browser build can be found at


Alternately you can comment/remove all entries in cordova_plugins.js file (Found inside the browser build folder as mentioned above) that contain the line:

"pluginId": "cordova-plugin-file"

and the error will go. This solution will work assuming you are not trying to save any local media (audio/images, etc.) on the device.
You may choose to save media on device for native builds and disable that functionality for the browser build.

1 Like

Hello ravib,

it worked… thank you very much for your help :slight_smile:

Really appreciate you came back to acknowledge the reply to an answer that was 3 months old!

1 Like

Me only showing thath in browsers, any idea?

hey @lmurillo248 yes, so was mine, and I followed @ravib suggestion and it worked fine now.

You need to check out first“cordova”).then(res=>{// save files here}).catch(error=>{// you are on browser don’t save files here })

Hi ravib,
thanks for your proposals, can you gimme a hint howto achieve “different config.xml for different targets” ?
is there any hook i could let this be done only in browser env, or what is the recommended way?