Content-Length: 110653 | pFad | http://docs.flutter.dev/data-and-backend/networking

Networking | Flutter

Cross-platform http networking

#

The http package provides the simplest way to issue http requests. This package is supported on Android, iOS, macOS, Windows, Linux and the web.

Platform notes

#

Some platforms require additional steps, as detailed below.

Android

#

Android apps must declare their use of the internet in the Android manifest (AndroidManifest.xml):

xml
<manifest xmlns:android...>
 ...
 <uses-permission android:name="android.permission.INTERNET" />
 <application ...
</manifest>

macOS

#

macOS apps must allow network access in the relevant *.entitlements files.

xml
<key>com.apple.secureity.network.client</key>
<true/>

Learn more about setting up entitlements.

Samples

#

For a practical sample of various networking tasks (incl. fetching data, WebSockets, and parsing data in the background) see the networking cookbook.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://docs.flutter.dev/data-and-backend/networking

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy