Skip to content

4.0.0 Release

Compare
Choose a tag to compare
@jkasten2 jkasten2 released this 09 Dec 01:28
285ea0f

⚠️ This is a major release which contains breaking API changes.

See the full list of changes along with step-by-step guides to upgrade.
https://documentation.onesignal.com/docs/mobile-2020-api-migration-guide

Some highlights for this release

  • Simpler & flexible initialization
    • setAppId, setNotificationOpenHandler, initWithContext, etc can be called in any order.
  • New notificationWillShowInForeground event
    • Fires just before a notification is displayed so decide at runtime if you want to show it or not.
    • Allow getting a OSNotification object that provides message body, additional data, etc.
  • Removed deprecated APIs
  • More consistent API with OneSignal-iOS-SDK
  • Updated to AndroidX
    • Improve compatibility with projects