Flutter
Platform Setup
Configure iOS and Android platforms for push notifications with PNTA Flutter plugin
iOS Setup
1. Xcode Configuration
- Open
ios/Runner.xcworkspace
in Xcode - Select your app target and go to “Signing & Capabilities”
- Add “Push Notifications” capability
- Add “Background Modes” capability and enable “Remote notifications”
Your ios/Runner/Info.plist
should include:
ios/Runner/Info.plist
2. Plugin Integration
Automatic! The plugin integrates automatically when you run:
No manual Podfile configuration needed - Flutter generates the standard Podfile automatically.
Android Setup
1. Firebase Configuration
- Go to the Firebase Console
- Create a new project or select an existing one
- Register your Android app using your package name (e.g.,
com.example.your_app
) - Download
google-services.json
and place it atandroid/app/google-services.json
2. Gradle Configuration
Project-level android/build.gradle
:
Add to the buildscript { dependencies { ... } }
block:
android/build.gradle
App-level android/app/build.gradle
:
Add at the very bottom:
android/app/build.gradle
3. AndroidManifest.xml Updates (Optional)
Most configuration is handled automatically by the plugin! You only need to add the following if your app opens external URLs from notifications:
android/app/src/main/AndroidManifest.xml
The plugin automatically handles:
POST_NOTIFICATIONS
permission- Firebase messaging service registration
- Default notification channel setup