Cross-platform http networking
http package provides the simplest way to issue http requests. This
package is supported on Android, iOS, macOS, Windows, Linux and the web.
Some platforms require additional steps, as detailed below.
Android apps must declare their use of the internet in the Android
<manifest xmlns:android...> ... <uses-permission android:name="android.permission.INTERNET" /> <application ... </manifest>
macOS apps must allow network access in the relevant
Learn more about setting up entitlements.
For a practical sample of various networking tasks (incl. fetching data, WebSockets, and parsing data in the background) see the networking cookbook.