You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/05/06 18:25:33 UTC

[GitHub] [cordova-plugin-file] jfoclpf commented on issue #426: Storage updates in Android 11

jfoclpf commented on issue #426:
URL: https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-833757042


   @interstellerS I know the thread is long, but we have already discussed that previously.
   
   The current **workaround** is to use the npm version of this plugin and not the dev version, just run to be sure you're using the npm version
   
   ```
   cordova plugin rm cordova-plugin-file
   cordova plugin add cordova-plugin-file
   ```
   
   The npm version does not use `requestLegacyExternalFlag` on which Google complains, on and after Android 11.
   
   Then install the plugin [`cordova-plugin-x-socialsharing`](https://www.npmjs.com/package/cordova-plugin-x-socialsharing) and use the `options.files` Array property. This let the users save the file wherever they want, instead of you trying to find the correct path. If you want to be sure your users are able to share to the file system, you can suggest them to install this [simple APP](https://play.google.com/store/apps/details?id=com.boxhead.android.sharetofilesystem&hl=en_US&gl=US), which is indeed just an addon (it will not create any new icon and it's not openable, it simply allows users to share a file to the file system).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org