Skip to content

Commit

Permalink
fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdiacono committed Jun 5, 2023
1 parent a0c8a2f commit 75c54e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ npm install capacitor-blob-writer
npx cap update
```

The BlobWriter plugin calls the global `fetch` function to transmit blob data directly to the local BlobWriter server, without serializing it to Base64. The built-in CapacitorHttp plugin can be [configured](https://capacitorjs.com/docs/apis/http#configuration) to monkey patch `fetch`, but this forces blob data to be serialized so there is then no benefit to using the BlobWriter plugin. So don't mess with `fetch`.

### iOS

Configure `Info.plist` to permit communication with the local BlobWriter server. This step is necessary for Capacitor v4+.
Expand Down

0 comments on commit 75c54e5

Please sign in to comment.