# Using Cordova in Chrome

**URL:** <https://forum.ionicframework.com/t/using-cordova-in-chrome/135256>\
**Category:** ionic-v3\
**Created:** [July 13, 2018, 6:53pm UTC](https://forum.ionicframework.com/t/using-cordova-in-chrome/135256 "2018-07-13T18:53:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronus](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Ronus](https://forum.ionicframework.com/u/Ronus)\
**Post date:** [July 13, 2018, 6:53pm UTC](https://forum.ionicframework.com/t/using-cordova-in-chrome/135256/1 "2018-07-13T18:53:44Z")

</div>

In my ionic application, I want to use:  
`this.file.writeFile():`  
I am running my application in chrome using

> ionic cordova run browser

When I use writeFile, nothing happens!

More Details:  
import: `import { File } from '@ionic-native/file';`  
actual code: `this.file.writeFile(this.file.cacheDirectory, "Test.txt", "Test");`

---

<div class="post-metadata">

**Author:** ![anna\_liebt](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@anna\_liebt](https://forum.ionicframework.com/u/anna_liebt)\
**Post date:** [July 13, 2018, 11:33pm UTC](https://forum.ionicframework.com/t/using-cordova-in-chrome/135256/2 "2018-07-13T23:33:44Z")

</div>

Hello,

if you look to chrome console, then you will see, when you try to call whatever in a native plugin, that it is not avaiable.  
For @ionic-native/file is described in the first sentence, that it allow access to files on device.

Best regrads, anna-liebt

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:29pm UTC](https://forum.ionicframework.com/t/using-cordova-in-chrome/135256/3 "2021-07-19T21:29:25Z")

</div>

Closed on July 19, 2021, 9:29pm UTC


