# Permission on android Marshmallow?

**URL:** <https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582>\
**Category:** ionic-v1\
**Created:** [August 25, 2016, 3:10pm UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582 "2016-08-25T15:10:27Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [August 25, 2016, 3:10pm UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/1 "2016-08-25T15:10:27Z")

</div>

Hi everyone,

I’m facing a problem with my app, and I need your help…

I’m using **cordovaFileTransfer** plugin and works fine, the problem is when I’m test it on android \>6.0… give me the next error: `> "Open failed: EACCES (Permission denied)`" when I try download a file.  
I read about it and seems like a new security permissions in the marshmallow…  
I tried insert in the config.xml file the next:

> ```
> <uses-permission android:name="android.permission.INTERNET" />
> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
> 
> ```

But didn’t work, how I can enable the permissions?  
Thank you alll

---

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [August 26, 2016, 7:38am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/2 "2016-08-26T07:38:55Z")

</div>

Please somebody help me with this, there is a lack of information in the web about ionic + Marshmallow permissions!

---

<div class="post-metadata">

**Author:** ![haytam](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@haytam](https://forum.ionicframework.com/u/haytam)\
**Post date:** [August 26, 2016, 9:00am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/3 "2016-08-26T09:00:04Z")

</div>

I did use this plugin in an Ionic app a couple times running in android Marshmallow.  
And I didn’t have this problem. Are you sure that you have the latest version of the plugin? and make sure that you did accept the storage access permission in the app.

---

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [August 26, 2016, 9:08am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/4 "2016-08-26T09:08:15Z")

</div>

@haytam Yes I have the latest version, I installed by doing this `cordova plugin add cordova-plugin-file-transfer`…  
where I accept the storage permission? Because I tested with ionic run android and nothing show me, the same occurs when I install the apk in my phone.

---

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [August 29, 2016, 8:08am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/5 "2016-08-29T08:08:01Z")

</div>

Can anybody help me please?

---

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [August 30, 2016, 1:27pm UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/6 "2016-08-30T13:27:02Z")

</div>

Nobody? I really need help for this problem ☹

---

<div class="post-metadata">

**Author:** ![umardraz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/umardraz/32/100817_2.png) [@umardraz](https://forum.ionicframework.com/u/umardraz)\
**Post date:** [August 30, 2016, 1:29pm UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/7 "2016-08-30T13:29:33Z")

</div>

Have you tried to reinstall fresh plugin? may be that plugin have update for this issue?

---

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [August 31, 2016, 9:18am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/8 "2016-08-31T09:18:52Z")

</div>

Thanks for your reply @umardraz!

I have the last version `cordova-plugin-file-transfer 1.5.1`

---

<div class="post-metadata">

**Author:** ![joaoccmatos](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@joaoccmatos](https://forum.ionicframework.com/u/joaoccmatos)\
**Post date:** [September 7, 2016, 9:40am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/9 "2016-09-07T09:40:58Z")

</div>

@leugim_ohlavrac any news on this? I’m having exactly the same problem.

---

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [September 7, 2016, 10:08am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/10 "2016-09-07T10:08:23Z")

</div>

I tried yesterday with a smartphone 6.0 and works fine, the marshmallow pop-up permissions showed up!  
I really don´t know why suddenly works fine!

Make sure you have the last version of the plugin, and try to add the code that I quoted in my first post.  
Try to reinstall the app again, maybe it is the problem.

---

<div class="post-metadata">

**Author:** ![joaoccmatos](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@joaoccmatos](https://forum.ionicframework.com/u/joaoccmatos)\
**Post date:** [September 7, 2016, 10:19am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/11 "2016-09-07T10:19:04Z")

</div>

Where are you storing the file? For Android if I use cordova.file.externalRootDirectory it gives me the EACCESS error, but if I use cordova.file.externalDataDirectory apparently downloads the file but I can’t find it anywhere.

---

<div class="post-metadata">

**Author:** ![leugim\_ohlavrac](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@leugim\_ohlavrac](https://forum.ionicframework.com/u/leugim_ohlavrac)\
**Post date:** [September 7, 2016, 10:27am UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/12 "2016-09-07T10:27:46Z")

</div>

I’m using externalRootDirectory… For cordova.file.externalDataDirectory, try this path sdcard/Android/data/“app-id”/files`

---

<div class="post-metadata">

**Author:** ![ashys\_kk](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@ashys\_kk](https://forum.ionicframework.com/u/ashys_kk)\
**Post date:** [May 5, 2017, 3:26pm UTC](https://forum.ionicframework.com/t/permission-on-android-marshmallow/61582/13 "2017-05-05T15:26:43Z")

</div>

facing same issue, checked with compatibility version of platform and plugin,but to no avail.
