Skip to content
pubscout

onesignal_flutter

5.8.0, released 11 days ago by an unverified publisher

Integrate OneSignal push notifications and in-app messaging into your Flutter app.

WASM-ready
$ flutter pub add onesignal_flutter
Source repository

What it does

Connects your Flutter application to the OneSignal service to handle push notifications, email, SMS, and in-app messages on iOS and Android. Provides user-centric APIs for cross-channel messaging and user data management.

AI-written summary of version 5.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a cross-platform push notification service with built-in segmentation and in-app messaging.
  • You want to manage user subscriptions across multiple channels like push, email, and SMS.

Skip it when

  • You only need simple local device notifications without any remote backend service.
  • You are strictly tied to Firebase Cloud Messaging without a third-party notification wrapper.

Strengths

  • Free push notification service with advanced segmentation and targeting features.
  • Supports both iOS and Android platforms with clear setup guides.
  • Includes in-app messaging alongside push, email, and SMS capabilities.

Weaknesses

  • Migration to v5.x user-centric APIs may not have 1:1 feature parity with older versions yet.
  • Requires platform-specific configuration for APNs and FCM credentials.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires following the OneSignal Setup Guide for iOS and Android credentials, configuring app identifiers, and potentially handling native dependency exclusions or CocoaPods subspecs for location tracking.

import 'package:onesignal_flutter/onesignal_flutter.dart';

// Initialize OneSignal
OneSignal.initialize("YOUR_ONESIGNAL_APP_ID");

// Request notification permissions
OneSignal.Notifications.requestPermission(true);

Alternatives

Packages that do the same job and could replace onesignal_flutter.