Skip to content

2.0.0 Release

Compare
Choose a tag to compare
@jkasten2 jkasten2 released this 23 Jul 02:43
47b7f79

📣 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 🚨

  1. Open your pubspec.yaml file and update onesignal: ^1.1.0 to onesignal_flutter: ^2.0.0.
  2. run flutter packages get
  3. Find and replace the following in all your .dart files.
    • import 'package:onesignal/onesignal.dart'
    • with
    • import 'package:onesignal_flutter/onesignal_flutter.dart'