Cordova-plugin-local-notifications: Android Manifest Permissions Issue

Created on 23 Jun 2016  路  3Comments  路  Source: katzer/cordova-plugin-local-notifications

Hi Team,

In the plugin.xml <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> is this really required for this plugin ? I have a security requirement to remove this permission from app.

Please help. I am not using any external storage in my app. Is it ok to just remove it or it is going to impact any functionalities.

Awaiting Information

Most helpful comment

The plugin does write to the external cache, however starting from 4.4 KitKat no permissions are required to write to the external storage of your own app.

You can use <uses-permission android:maxSdkVersion="18" android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> instead to only add this permission for versions of android older than KitKat.
https://developer.android.com/guide/topics/data/data-storage.html#AccessingExtFiles
https://developer.android.com/reference/android/content/Context.html#getExternalCacheDir()

All 3 comments

The plugin does write to the external cache, however starting from 4.4 KitKat no permissions are required to write to the external storage of your own app.

You can use <uses-permission android:maxSdkVersion="18" android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> instead to only add this permission for versions of android older than KitKat.
https://developer.android.com/guide/topics/data/data-storage.html#AccessingExtFiles
https://developer.android.com/reference/android/content/Context.html#getExternalCacheDir()

Closed as no update from original poster.

Thanks :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThorvaldAagaard picture ThorvaldAagaard  路  3Comments

luca-itro picture luca-itro  路  5Comments

Kasendwa picture Kasendwa  路  3Comments

tverilytt picture tverilytt  路  4Comments

daniele-sartiano picture daniele-sartiano  路  4Comments