Skip to content

2.7.0 Release

Compare
Choose a tag to compare
@Nightsd01 Nightsd01 released this 12 May 02:22

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