Skip to content

Releases: OneSignal/OneSignal-Unity-SDK

2.7.0 Release

12 May 02:22
Compare
Choose a tag to compare

GDPR

  • Adds three new methods:
    • SetRequiresUserPrivacyConsent(bool) allows your application to delay the initialization of the OneSignal SDK until the user provides privacy consent using the method below. Until this happens, any calls made to the SDK will be ignored.
    • UserDidProvideConsent(bool) tells the SDK if the user has given consent. This setting is persisted (remembered) between sessions so you don't have to call it multiple times. If true, will initialize the SDK.
    • UserProvidedConsent() returns a boolean indicating if the user has given consent.
  • Also adds a new method SetLocationShared(bool) that allows you to manually disable location collection by the SDK. However, if disabled, you will not be able to use location based notifications.

Build Scripts

  • The SDK now includes a build script that will automatically configure and add a Notification Extension Service (iOS) to your project, and will automatically add required frameworks and enable the push notifications capability.
  • This improves support for Unity cloud build projects

Bug Fixes

  • Fixes a bug where setting the UNUserNotificationCenterDelegate would cause swizzling issues.
  • Fixes an issue where the automatically added extension service only targeted iPhone (not iPad)

Native Updates

Android SDK - 3.9.0
  • Now supports FCM (Firebase Cloud Messaging) library
  • Fixed NPE on UserState.dependValues. Issue #503
iOS SDK - 2.8.3

• The SDK will now work with media attachment URL's that don't end in file extension (ie. .jpg). If a URL is missing a file extension, it will instead use the MIME type of the asset.
• Resolves an incompatibility issue with the HelpShift iOS SDK
• Fixes an issue that caused incorrect "notification opened" events to be sent to OneSignal's backend server

2.6.4 Release

23 Mar 21:05
Compare
Choose a tag to compare

• Includes updated versions of the iOS and Android SDK's to fix bugs and improve badge handling in iOS

Android Improvements

  • Updated to the latest PlayServicesResolver
    • From 1.2.61.0 to 1.2.64.0
  • Corrected Android decencies to that latest test OneSignal version to prevent beta / alpha version
    • Prevents issues with the Android Support library 28.0.0-alpha being used which will create build issues
  • Fixes ConcurrentModificationException errors, regression bug in 3.8.0
  • Refactored internal SharedPreferences writes for improved performance.
  • Fixes logoutEmail error when using emailAuthHash
  • Fixes race condition subscription issue when promptLocation is called after init
  • Unity - Fixed missing OneSignalUnityProxy class when using Proguard

iOS Improvements

  • Adds a new badge handling system in the OneSignalNotificationServiceExtension
  • The SDK now handles badge count logic on the device itself instead of relying on the backend
  • Adds support for the NSLocationAlwaysAndWhenInUseUsageDescription Info.plist location permissions key

2.6.3 Release

15 Mar 19:07
Compare
Choose a tag to compare

• Includes newest versions of the Android and iOS SDK's

iOS Improvements

• Adds a setting called kOSSettingsKeyPromptBeforeOpeningPushURL which allows developers to control what happens when a user taps a notification with a web URL. If this setting is set to true, the SDK will prompt the user with an alert asking if they want to open the website or not. By default, this setting is false.
• Adds ability for postNotification() to preprocess NSDate objects so that developers can add a delay without having to convert to strings first
• The SDK will now always convert email auth hash tokens to be lowercase for consistency
syncHashedEmail() is now officially deprecated: added a deprecation notice.
• Removed use of private Apple API's which caused problems in (very) rare circumstances. This private API was implemented in order to call deprecated methods for developer convenience. However we have removed this functionality in order to avoid problems with the app review process. The SDK will now print an error to the console if a developer implements these methods.
• Fixes an issue that would have caused problems parsing notifications in a new payload format.
• Fixed some issues that caused crashes in iOS 7.

Android Improvements

• Fixed ANRs related to OneSignal SyncService.
• Fixed various Android issues
• Possible fix to Bad Notification: Couldn't expand RemoteViews error.
• App name is no longer defaulted as the notification title if one is not set on Android 7 (Nougat)+
• Notification views / groups now always show the app the notification came from now.
• Deprecated syncHashedEmail in favor of setEmail
• See the OneSignal Email Quickstart guide for details on how to use and start sending emails.
• Removed open and received handler requirement for Firebase Analytics tracking.
• See Google Analytics for Firebase for full setup details.
• Fixed null alert handling with displayNotification from a NotificationExtensionService.
• Fixed NPE in OneSignalStateSynchronizer.

2.6.2 Release

01 Mar 01:35
Compare
Choose a tag to compare

• Resolves an issue that caused getPermissionSubscriptionState() to fail with an error.
• Updates the google play jar resolver to the latest version.

2.6.1 Release

26 Feb 23:20
Compare
Choose a tag to compare

• Fixes an issue building iOS caused by a missing function declaration
• Fixes a Unity Cloud Build issue caused because the generated xcode project was missing UserNotifications.framework
• Added a post build script to insert the UserNotifications framework into the generated xcode project

2.6.0 Release

22 Feb 02:20
Compare
Choose a tag to compare

Adds Email to the OneSignal Unity SDK

2.5.0. Release

21 Dec 23:34
Compare
Choose a tag to compare

Firebase Analytics support and Observer Fixes

  • Added Firebase Analytics notification events.
  • Fixed iOS permission state. Issue #56
  • Fixed from state on OSPermissionStateChanges. Issue #73

2.4.1 Release

07 Oct 02:44
Compare
Choose a tag to compare

Native SDKs Update - iOS 2.5.6, Android 3.6.3

Must upgrade to this version or newer when building with Xcode 9!

  • iOS - Fixes issue with open event on cold start on iOS 11
  • iOS - Fixes error "OneSignal AppId format is invalid." Issue #33
  • Android - Oreo and misc error handling improvements
    • Fixes double events when sending silent notifications. Issue #64
    • Fixes extra Android Resolver refreshes
      • Updated Google JarResolver from1.2.44 to 1.2.54

2.4.0 Release

21 Aug 23:16
Compare
Choose a tag to compare

Android Oreo (8.0)

Must upgrade to this version or newer when targeting Android API level 26

  • Added support for Android O Notification Channels
  • Dropped Android 2.3 (API 9) support, minimum is now 4.0.3 (API 15)
  • Dropped support for Unity 4

2.3.3 Release

19 Jun 19:13
Compare
Choose a tag to compare

Fixed iOS Editor compile error