> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notifique.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Flutter

> How to add push notifications to your Flutter app.

<Tip>
  Flutter runs on Android **and** iPhone. Set up both “front desks” (Google and Apple) in the dashboard, then paste **one code block** in your Flutter project.
</Tip>

## In a few words

1. Set up Firebase (Android) and Apple (iPhone) in the Notifique dashboard
2. Install `notifique_push` and Firebase in Flutter
3. Call `NotifiquePush.init` with your `appId`
4. Test on both phone types if you support both

## Before you start

| If your app runs on… | Set up first…                                                       |
| -------------------- | ------------------------------------------------------------------- |
| Android              | [Firebase credentials](/en/push-api/integracao/credenciais-android) |
| iPhone               | [Apple credentials](/en/push-api/integracao/credenciais-ios)        |
| Both                 | Both guides above                                                   |

## Step 1: Dependencies

In `pubspec.yaml`:

```yaml theme={null}
dependencies:
  notifique_push: ^0.1.0
  firebase_core: ^3.0.0
  firebase_messaging: ^15.0.0
```

Then run `flutter pub get`.

Firebase in Flutter follows the same steps as native Android (`google-services.json`, etc.).

## Step 2: Start in the app

In Dart, when the app opens:

```dart theme={null}
import 'package:notifique_push/notifique_push.dart';

await NotifiquePush.init(appId: 'YOUR_APP_ID');
```

Replace `YOUR_APP_ID` with the Notifique dashboard ID.

<Note>
  Only `appId` in the app, never API keys inside Flutter.
</Note>

## Step 3: Test

1. Run on Android or iPhone (real device preferred)
2. Accept notifications
3. Send a test from the dashboard

## Checklist

* [ ] Credentials in dashboard (Google and/or Apple)
* [ ] Firebase configured in Flutter project
* [ ] `init` with correct `appId`
* [ ] Test on real device

## Next steps

* [Native Android](/en/push-api/integracao/android)
* [Native iPhone](/en/push-api/integracao/ios)
* [React Native](/en/push-api/integracao/react-native)
* [All guides](/en/push-api/integracao/index)
