Skip to content

Instantly share code, notes, and snippets.

@bitflower
Last active February 3, 2021 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitflower/ccc2d10e998c1ee4d1b217557241f3bf to your computer and use it in GitHub Desktop.
Save bitflower/ccc2d10e998c1ee4d1b217557241f3bf to your computer and use it in GitHub Desktop.
App-specific file sharing (iOS and Android)

On ios we need to set the 2 config values in the file Info.plist

...
<key>UIFileSharingEnabled</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
...

Android

Add android:usesCleartextTraffic="true" to the <application> tag in android/app/src/main/AndroidManifest.xml

or add this to capacitor.config.json:

"server": {
  "url": "http://192.168.1.68:8100",
  "cleartext": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment