Documentation

Everything to ship over-the-air updates with Pulsar — from install to multi-deployment testing.

Flutter

Pulsar updates Flutter apps through pulsar_flutter. A Flutter release carries screens built with Remote Flutter Widgets (.rfwtxt or .rfw files), plus text, JSON config and images. It goes live in the running app, so users see it right away. Dart code still ships through the App Store and Google Play.

Flutter releases get everything React Native releases get: Staging and Production, gradual rollouts, targeting by device, user or store version, scheduling, disable and rollback, install metrics and per-device failure details.

1. Create a Flutter app

In the dashboard, choose New app and pick Flutter as the framework. Create one app for iOS and one for Android, as with React Native.

2. Add the package and start it
bash
flutter pub add pulsar_flutter
dart
import 'package:pulsar_flutter/pulsar_flutter.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Pulsar.start(const PulsarConfig(
    deploymentKey: '<deployment key>',
    appVersion: '1.0.0', // pubspec version, without +build
    serverUrl: 'https://api.usepulsar.dev',
    checkEvery: Duration(minutes: 15),
  ));
  runApp(const MyApp());
}
3. Show content from releases

PulsarScreen shows a widget from a release file, and its fallback until one arrives. Screens can import core.widgets and core.material, and send events back to your Dart code.

dart
PulsarScreen(
  library: 'screens/home.rfwtxt',
  widget: 'Home',
  data: {'name': user.firstName},
  fallback: const HomeScreen(),
  onEvent: (name, arguments) { if (name == 'checkout') openCheckout(); },
)

// Text, JSON and images from the live release:
final pack = Pulsar.instance.pack;
final config = pack?.json('config.json');
final banner = pack?.image('images/banner.png');
4. Release

Put the release in pulsar_pack/ at your app root. The CLI reads the store version from pubspec.yaml.

bash
npx pulsar release MyApp-iOS Staging --platform ios
npx pulsar release MyApp-iOS Production --platform ios --rollout 25
Safety

The device checks every file against the release hash before using it, and parses every screen and JSON file first. A release that fails stays off screen, the device keeps the release before it, and the failure shows in the dashboard with its error. Call Pulsar.instance.reportFailure(error) if your own code finds a problem with a release.

Store rules still apply: anything a release can switch on must already be in the store build, and releases should change content and screens, not add features the store never reviewed.