Here's a few possibilities:
- Fork the plugin and modify as desired, and build from your fork (see the docs for using plugins from git repos: Plugins | PhoneGap Docs).
- Fork the plugin, modify, and send a pull request to have it updated on the npm repo (or both 1 and 2).
- Try using PGB's config-file element to modify the manifest: Modifying Manifests | PhoneGap Docs (not sure if it will work in this use case).
I had previously tried with the config-file element with no success, but I had missed the documentation on the 'mode' attribute, which I think has made the difference. I've now resolved my issue, the plugin is still working and it's no longer requesting storage access on Android 4.4 plus. Thanks!
This did the trick:
<config-file target="AndroidManifest.xml" parent="/manifest" mode="merge">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
(For anyone reading this, also make sure you have included the android namespace on the widget element).