Releases
2.0.0
📣 Dart Package is now onesignal_flutter & Android In-App Messages
Renamed "onesignal" to "onesignal_flutter"
This resolves iOS incompatibility at build time when a pod that uses Swift is imported with use_frameworks!
🎉
See migration steps below
See the OneSignal In-App quickstart guide for more details.
Fixed Android UiThread crashes.
When re-initializing with a different AppId the device registers correctly without requiring an app cold start
Dashboard parameters are now correctly refreshed as well from the new app id.
Notification Channels / Categories, added invalid format handling to LED colors.
Fixed com.onesignal.PrivacyConsent
AndroidManifest.xml
check when using newest init method.
Fixed location permission prompting and session count / time tracking after privacy consent is accepted.
🚨 OneSignal 1.X to 2.0.0 Migration Guide 🚨
Open your pubspec.yaml
file and update onesignal: ^1.1.0
to onesignal_flutter: ^2.0.0
.
run flutter packages get
Find and replace the following in all your .dart
files.
import 'package:onesignal/onesignal.dart'
with
import 'package:onesignal_flutter/onesignal_flutter.dart'
You can’t perform that action at this time.