OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
Starting with iOS 17.2, Live Activities can now be started via push notification (Apple's documentation). This change enhances the OneSignal SDK to provide application's access to the full suite of Live Activity functionality.
To use Push To Start Live Activities, see documentation on How to start a Live Activity with a remote push notification.
Default Live Activity
The concept of a "Default" Live Activity has been established in the SDK, which eliminates the need for a customer app to define and manage their own ActivityAttributes
. The primary use case of the "Default" Live Activity is to facilitate easier cross-platform adoption.
OneSignal.LiveActivities.setupDefault()
which tells the OneSignal SDK to manage the LiveActivity lifecycle for the DefaultLiveActivityAttributes
type. When calling this method, a customer can use both push-to-start
and push-to-update
notifications to start/update/end their Default Live Activity.OneSignal.LiveActivities.startDefault(activityId, activityAttributes, initialContentState)
which allows a customer app to start a live activity based on the DefaultLiveActivityAttributes
type "in app".Four New APIs for Live Activities
OneSignal.LiveActivities.setupDefault()
OneSignal.LiveActivities.startDefault(activityId, activityAttributes, initialContentState)
OneSignal.LiveActivities.setPushToStartToken(String activityType, String token)
OneSignal.LiveActivities.removePushToStartToken(String activityType)
Please see the PR description for more details.
5.1.10
to 5.1.13
OneSignal-Install-Id
that allows the OneSignal's backend know where traffic is coming from (2072)5.1.6
to 5.2.0
Update Android SDK from 5.1.9
to 5.1.10
Update iOS SDK from 5.1.5
to 5.1.6
Full Changelog: https://github.com/OneSignal/OneSignal-Flutter-SDK/compare/5.1.5...5.1.6
Update Android SDK from 5.1.8
to 5.1.9
AndroidManifest
options to override In-App Messages gray overlay and dropshadow
<meta-data android:name="com.onesignal.inAppMessageHideGrayOverlay" android:value="true"/>
<meta-data android:name="com.onesignal.inAppMessageHideDropShadow" android:value="true"/>
Update iOS SDK from 5.1.4
to 5.1.5
plist
option to disable itplist
option to override and hide the gray overlay to In-App MessagesOneSignal_in_app_message_hide_gray_overlay
OneSignal_in_app_message_hide_drop_shadow
Update Android SDK from 5.1.6
to 5.1.8
Update iOS SDK from 5.1.3
to 5.1.4
🐛 Bug Fixes
🎉 New Methods
Update Android SDK from 5.1.2
to 5.1.6
firebase-messaging
and play-services-basement
getAppContext
when the SDK is initializing: link
Update iOS SDK from 5.1.0
to 5.1.3
🚧 Do not use 🚧
🎉 New Methods
getTags
method #804🔧 Maintenance
🐛 Bug Fixes
requestPermission
call when already granted #806⚠️ Behavior Changes ⚠️
OneSignal.Location.setShared(true)
5.0.4
to 5.1.0
: Release notes
5.0.4
to 5.1.2
: Release notes
Full Changelog: https://github.com/OneSignal/OneSignal-Flutter-SDK/compare/5.0.4...5.1.0
🔧 Maintenance
namespace
property in build.gradle
to support AGP 8 https://github.com/OneSignal/OneSignal-Flutter-SDK/pull/765
Native iOS SDK Update
Bump native iOS SDK version from 3.12.4
to 3.12.7
: See release notes
Native Android SDK Update
Bump native Android SDK version from 4.8.5
to 4.8.7
: See release notes
Full Changelog: https://github.com/OneSignal/OneSignal-Flutter-SDK/compare/3.5.1...3.5.2