Mobile apps

What is a platform channel in Flutter?

A platform channel is Flutter's messaging bridge between Dart code and native Android (Kotlin or Java) or iOS (Swift or Objective-C) code. It lets a Flutter app use device features that no existing plugin provides.

How it works

Dart sends a named message, for example startShiftService, with optional arguments over a method channel. Native code receives it, does the work with platform APIs and sends a result back. Event channels stream continuous data such as sensor values.

When teams need it

Vendor SDKs that only ship in native form, custom foreground services, specialized hardware, or a platform feature a plugin does not yet cover. Many Flutter apps contain at least a little native code for this reason.

Maintenance concerns

  • Each channel must be written and tested on both platforms, which brings back some of the cost Flutter saves.
  • Message formats need clear contracts, or one side breaks the other silently.
  • Newer tools such as Pigeon generate typed code for both ends.
  • Native code requires developers with iOS and Android skills on call.

Prefer a maintained community plugin if one fits.

Questions, answered

No. The interface is still Flutter; only specific features run in native code.

Not if kept small and documented, but it needs native expertise when OS versions change.

By the Stegnor team · Updated