diff --git a/OneSignalExample/Assets/OneSignal/Attribution/OneSignal.UnityPackage.Attribution.asmdef b/OneSignalExample/Assets/OneSignal/Attribution/OneSignal.UnityPackage.Attribution.asmdef index a82956cd8..b93357a35 100644 --- a/OneSignalExample/Assets/OneSignal/Attribution/OneSignal.UnityPackage.Attribution.asmdef +++ b/OneSignalExample/Assets/OneSignal/Attribution/OneSignal.UnityPackage.Attribution.asmdef @@ -16,7 +16,7 @@ "versionDefines": [ { "name": "com.onesignal.unity.core", - "expression": "5.1.15", + "expression": "5.2.0-beta-01", "define": "ONE_SIGNAL_INSTALLED" } ], diff --git a/OneSignalExample/Assets/OneSignal/CHANGELOG.md b/OneSignalExample/Assets/OneSignal/CHANGELOG.md index 2fd43a785..a0c4e6230 100644 --- a/OneSignalExample/Assets/OneSignal/CHANGELOG.md +++ b/OneSignalExample/Assets/OneSignal/CHANGELOG.md @@ -1,12 +1,34 @@ # Changelog + All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [5.2.0-beta-01] + +## 🎉 Custom Events Support + +This beta release introduces Custom Events support for the unity sdk. + +Please see documentation on [Custom Events](https://documentation.onesignal.com/docs/mobile-sdk-reference#trackevent). + +We appreciate your experience and feedback using this beta version! + +### Changed + +- Add/expose custom event methods (#793) +- Updated included Android SDK from 5.1.37 to [5.3.0-alpha-01](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.3.0-alpha-01) + - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) +- Updated included iOS SDK from 5.2.14 to [5.4.0-alpha-01](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.4.0-alpha-01) + - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) + ## [5.1.15] + ### Changed + - Updated included Android SDK from 5.1.31 to [5.1.37](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.37) - [Fix] IAM not shown when calling login immediately after init - [Fix] IAM now showing after switching to 3-button-navigation mode @@ -28,17 +50,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - OneSignal.Debug.removeLogListener - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) - Updated included iOS SDK from 5.2.10 to [5.2.14](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.14) - - [Fix] Synchronize to fix crashes in the user module + - [Fix] Synchronize to fix crashes in the user module - [Fix] Prevent deadlocks when user manager runs its startup tasks - [Fix] Bug when notification has badge set to zero - [Fix] drop deprecated applicationIconBadgeNumber usage - [Improvement] Ensure push tokens are registered for existing Live Activities during setup - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) + ## [5.1.14] + ### Changed + - [Fix] Missing .meta Android Migration files Unity editor error + ## [5.1.13] + ### Changed + - Updated included Android SDK from 5.1.26 to [5.1.31](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.31) - [Compatibility] Unity 6 build error with Android - [Fix] Incorrect activity path for NotificationOpenedActivityHMS @@ -52,8 +80,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [Fix] Requiring privacy consent blocks confirmed deliveries indefinitely - [Fix] Detect for timezone changes and update the user - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) + ## [5.1.12] + ### Changed + - Updated included Android SDK from 5.1.25 to [5.1.26](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.26) - [Fix] ANR caused by operationRepo.enqueue while loading is in progress - [Fix] Check subscription Id before executing delete and update subscription operations @@ -64,7 +95,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.11] + ### Changed + - Updated included Android SDK from 5.1.24 to [5.1.25](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.25) - Fix NullPointerException from getScheduleBackgroundRunIn - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) @@ -73,7 +106,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.10] + ### Changed + - Updated included Android SDK from 5.1.21 to [5.1.24](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.24) - Pausing in-app messages now dismisses any currently displaying in-app messages - Fix setting consentGiven throwing if called before initWithContext @@ -86,7 +121,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.9] + ### Changed + - Updated included Android SDK from 5.1.20 to [5.1.21](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.21) - Fix ending an already ended session - Fix permissions returned by onRequestPermissionResult when the list is empty @@ -94,7 +131,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) ## [5.1.8] + ### Changed + - Updated included Android SDK from 5.1.17 to [5.1.20](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.20) - Optimized the initialization process by moving some service initialization to a background thread - Recover null onesignal ID crashes for Operations @@ -109,7 +148,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.7] + ### Changed + - Updated SDK to support Live Activities PushToStart and added a concept of a "Default" Live Activity to facilitate easier adoption. Please check out https://documentation.onesignal.com/docs/push-to-start-live-activities for more information and our [example app](https://github.com/OneSignal/OneSignal-Unity-SDK/tree/main/OneSignalExample) for an example implementation. - Updated included Android SDK from 5.1.13 to [5.1.17](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.17) - Fixed Xiaomi notification click not foregrounding app @@ -130,16 +171,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed crash when IAM window fails to load by using the main thread - Network call optimizations: Combine user property updates for network call improvements - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) + ### Fixed + - Additional instance of OneSignal error when calling OneSignal methods in Awake() - iOS Mac Catalyst build error: Use of undeclared identifier 'OneSignalLiveActivitiesManagerImpl' ## [5.1.6] + ### Fixed + - iOS build error: No type or protocol named OSLiveActivities ## [5.1.5] + ### Changed + - Updated included Android SDK from 5.1.10 to [5.1.13](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.13) - Fixed the ANR issue caused by prolonged loading of OperationRepo and potentially by extended holding of the model lock during disk I/O read operations - Fixed IndexOutOfBounds exception thrown from OperationRepo.loadSavedOperations if app was opened offline, some operations done, and then the app is opened again @@ -155,7 +202,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.4] + ### Changed + - Updated included Android SDK from 5.1.9 to [5.1.10](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.10) - Handle incorrect 404 responses; add a delay after creates and retries on 404 of new ids - Added network call optimizations @@ -169,14 +218,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.3] + ### Changed + - Updated included Android SDK from 5.1.8 to [5.1.9](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.9) - Added AndroidManifest option to override In-App Messages gray overlay and dropshadow - \ - \ - Fixed WorkManager not initialized crash - Fixed don't re-create user on failed remove alias - - Added network call optimizations + - Added network call optimizations - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) - Updated included iOS SDK from 5.1.4 to [5.1.5](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.5) - Added plist option to hide gray overlay and disable dropshadow for In-App Messages @@ -185,7 +236,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.2] + ### Changed + - Updated included Android SDK from 5.1.6 to [5.1.8](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.8) - Fixed externalId being skipped and updates to stop if something updates the User (such as addTag) shortly before login is called - Fixed optIn() not prompting if called before push subscription is created on backend @@ -194,97 +247,134 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) - Updated included iOS SDK from 5.1.3 to [5.1.4](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.4) - Signed XCFrameworks - - Fixed stuck login requests + - Fixed stuck login requests - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) ## [5.1.1] + ### Changed + - Updated included Android SDK to [5.1.6](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.6) - Updated included iOS SDK to [5.1.3](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.3) ## [5.1.0] + ### Fixed + - iOS crash when calling OneSignal.User.PushSubscription.Id and OneSignal.User.PushSubscription.Token when they are null. + ### Changed + - Add public getters for OneSignalId and ExternalId in the User namespace - Add public event handler OneSignal.User.Changed that fires when the OneSignalId or ExternalId changes - Updated included Android SDK to [5.1.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.5) ## [5.0.6] + ### Fixed + - Duplicate symbol errors when building with other iOS plugins -- Removed READ_PHONE_STATE permission in Android builds. Delete your OneSignalConfig.androidlib and run the -"Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix. -- Fixed lower build-tools versions being needed for Android builds. Delete your OneSignalConfig.androidlib and run the -"Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix. +- Removed READ_PHONE_STATE permission in Android builds. Delete your OneSignalConfig.androidlib and run the + "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix. +- Fixed lower build-tools versions being needed for Android builds. Delete your OneSignalConfig.androidlib and run the + "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix. + ### Changed + - Updated included Android SDK to [5.1.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.2). - Android builds now require the Target API Level to be set to 33 or higher. - Updated included iOS SDK to [5.1.0](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.0) ## [5.0.5] + ### Changed + - Add public get tags method - Updated included Android SDK to [5.0.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.5) - Updated included iOS SDK to [5.0.5](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.5) + ### Fixed + - Included meta files in OneSignalConfig.androidlib to prevent asset from being ignored - Package download url in the "Sync example code bundle package" step from the OneSignal SDK Setup ## [5.0.4] + ### Changed + - Updated included Android SDK to [5.0.3](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.3) ## [5.0.3] + ### Changed + - `InstallEdm4uStep` now imports version [1.2.177](https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.177) of [EDM4U](https://github.com/googlesamples/unity-jar-resolver) - Updated included Android SDK to [5.0.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.2) - Updated included iOS SDK to [5.0.2](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.2) - `OneSignalConfig.plugin` has been changed to `OneSignalConfig.androidlib`. Run the "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to migrate. Custom notification icons are now located in `Assets/Plugins/Android/OneSignalConfig.androidlib/src/main/res` + ### Fixed + - Sending VSAttribution data from the editor - iOS notifications clicked event firing if the app was cold started from clicking a notification - ClassNotFoundException: com.onesignal.OneSignal for Android builds with minify enabled. You must run the "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup**. - Disabled bitcode to avoid iOS build error ## [5.0.2] + ### Fixed + - Stop foreground notifications from displaying after calling prevent default on iOS ## [5.0.1] + ### Fixed + - Push subscription Id and Token malloc error on iOS ## [5.0.0] + ### Changed + - Removed `SetLaunchURLsInApp` - Removed async from location request permission and updated method name to `RequestPermission` - Updated included iOS SDK to [5.0.1](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.1) - Updated included Android SDK to [5.0.0](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0) - Updated default OneSignal Android notification icons to new logo + ### Fixed + - NoSuchMethodError for outcome methods on Android - Completion check for the Copy Android plugin to Assets setup step ## [5.0.0-beta.3] + ### Changed + - Updated `Notifications`, `InAppMessages`, and `User` models to have Pascal Case properties -- Updated public API. Please see the updated [migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.3/MIGRATION_GUIDE_v3_to_v5.md) for the most up to date signatures. +- Updated public API. Please see the updated [migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.3/MIGRATION_GUIDE_v3_to_v5.md) for the most up to date signatures. - Updated included Android SDK to [5.0.0-beta4](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta4) - Updated included iOS SDK to [5.0.0-beta-04](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-04) ## [5.0.0-beta.2] + ### Added + - SDK type and version to api headers + ### Changed + - Updated included Android SDK to [5.0.0-beta2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta2) - Updated included iOS SDK to [5.0.0-beta-02](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-02) ## [5.0.0-beta.1] + ### Added -- [Migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.1/MIGRATION_GUIDE_v3_to_v5.md -) for updating from 3.x.x to 5.x.x + +- [Migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.1/MIGRATION_GUIDE_v3_to_v5.md) for updating from 3.x.x to 5.x.x + ### Changed + - Overhauled public API of the SDK to a user-centered model. While this release is in beta please see our included [example MonoBehaviour](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.1/OneSignalExample/Assets/OneSignal/Example/OneSignalExampleBehaviour.cs) for usage. - Updated included Android SDK to [5.0.0-beta1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta1) - Updated included iOS SDK to [5.0.0-beta-01](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-01) @@ -292,74 +382,108 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 If you run into any problems, please don’t hesitate to add to this [issue](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/585)! ## [3.0.11] + ### Fixed + - Fixed rare Android ANRs on callbacks firing and also when backgrounding the app. ## [3.0.10] + ### Changed + - Updated included Android SDK to [4.8.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.8.5) - Updated included iOS SDK to [3.12.4](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.12.4) + ### Fixed + - Fixed InstallEdm4uStep to work with UPM EDM4U installations ## [3.0.9] + ### Fixed + - Android - Lock OneSignal version so it doesn't get bumped to the next major version. ## [3.0.8] + ### Changed + - Renamed `enterLiveActivity` to `EnterLiveActivity` and `exitLiveActivity` to `ExitLiveActivity` - Updated Unity Verified Solutions Attribution script from VspAttribution to VSAttribution + ### Fixed + - Resolved serialization depth limit 10 exceeded warning log ## [3.0.7] + ### Changed + - Updated included iOS SDK to [3.12.3](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.12.3) - Added support for OneSignal iOS functionality `enterLiveActivity` and `exitLiveActivity` ## [3.0.6] + ### Fixed + - Android builds failing without the Unity iOS module - Fixed app group name to be a property. Fixes [#545](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/545) ## [3.0.5] + ### Changed + - Updated included Android SDK to [4.8.3](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.8.3) - Updated included iOS SDK to [3.11.5](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.11.5) + ### Fixed + - Log current version number of the OneSignal SDK ## [3.0.4] + ### Fixed + - Android `DeleteTags` and `RemoveTriggers` calls correctly use a Java array list instead of an array ## [3.0.3] + ### Changed + - Added support for OneSignal Android functionality `promptForPushNotifications` - Updated included Android SDK to [4.8.1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.8.1) - Updated included iOS SDK to [3.11.2](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.11.2) - Added support for OneSignal Android `setLanguage` callbacks ## [3.0.2] + ### Changed + - Updated included Android SDK to [4.7.1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.7.1) - Explicitly check for a diff and handle overwrites for the `AndroidManifest.xml` between the project's and package's `OneSignalConfig.plugin` - `InstallEdm4uStep` checks for version number to determine if step is completed + ### Fixed + - iOS build post processor checks for complete presence of extension - iOS publishing error 90206 when uploading app to Apple. - iOS builds on Unity on Windows failing on Entitlements file path. Fixes [#491](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/442) - `OneSignalXCFramework` pod version of `OneSignalNotificationServiceExtension` target in Podfile of iOS builds will be upgraded if target is present during post processing ## [3.0.1] + ### Added + - [Migration guide](../../../MIGRATION.md) for updating from 2.x.x to 3.x.x + ### Changed + - Added support for OneSignal iOS functionality `setLaunchURLsInApp` - Improved included [README](../../../com.onesignal.unity.android/Editor/OneSignalConfig.plugin/README.md) for changing the notification icons in the Android plugin. - Added inline documentation and Unity idiomatic fields to the `InAppMessageAction` + ### Fixed + - Android deserialization of `NotificationAction` type now accounts for `actionID` - Android deserialization of `Notification` type now accounts for `additionalData` in all cases - Reverted [#430](https://github.com/OneSignal/OneSignal-Unity-SDK/pull/430) due to a deprecation of where Android resources can be stored in Unity. Notification icons to be changed for Android can again be found at `Assets/Plugins/Android/OneSignalConfig.plugin`. Fixes [#470](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/470) @@ -373,20 +497,28 @@ If you run into any problems, please don’t hesitate to add to this [issue](htt - Error deserialization for identity methods on Android ## [3.0.0] + ### Changed + - Updated VSP Attribution with the latest version of script - Moved EDM4U installer step to the core package as it is needed for both platforms + ### Fixed + - Checks for VERSION file before attempting to read it - Added podfile amendments to iOS Append builds - Include utilities necessary for independent use of the initial unitypackage install - Removed unused helper method in the iOS post processor which used code from after Unity 2018 ## [3.0.0-beta.6] + ### Fixed + - iOS build post processor will determine extension's imported OneSignalXCFramework from the package's dependencies xml. Fixes [#442](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/442) - iOS callbacks for the `NotificationPermissionChanged` event will no longer cause an il2cpp exception + ### Changed + - Added AndroidManifest with location permissions to the example app to display `PromptLocation` - `InstallEdm4uStep` now imports version [1.2.169](https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.169) of [EDM4U](https://github.com/googlesamples/unity-jar-resolver) - Log an error in the example app when `RequiresPrivacyConsent` is attempted to be set to false from true @@ -394,43 +526,58 @@ If you run into any problems, please don’t hesitate to add to this [issue](htt - Replaced manual manipulation of iOS entitlements in post processing with Unity's [ProjectCapabilityManager](https://docs.unity3d.com/ScriptReference/iOS.Xcode.ProjectCapabilityManager.html) ## [3.0.0-beta.5] + ### Changed + - Default export path for notification icons on Android changed to `Assets/Plugins/Android/res` - Froze imported OneSignal iOS SDK to [3.10.0](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.10.0) release - Froze imported OneSignal Android SDK to [4.6.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.6.5) release + ### Removed + - Legacy AndroidManifest from past version of imported OneSignal Android SDK - Legacy Android notification icons ## [3.0.0-beta.4] + ### Added + - Included a new setup step from the OneSignal Unity Editor menu (**Window > OneSignal**) which syncs the example code bundle with the core package version + ### Fixed + - `NotificationPermission` return from native SDK no longer raises a casting exception on iOS - Resolved infinite loops on logging initialization conditions - iOS postprocessing will respect existing entitlement files - Will no longer init SDK again if done before `RuntimeInitializeOnLoadMethod` ## [3.0.0-beta.3] + ### Fixed + - Eliminated syntax only supported on Unity 2020 or above - Global callbacks on Android are now correctly setup post `initWithContext` - Properly push `LogLevel` and `AlertLevel` settings to native SDKs - Added missing setter to override the detected language. Fixes [#416](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/416) - Add missing getters for permission and subscription states + ### Changed + - Implemented missing `Notification` properties `additionalData` and `actionButtons` - `LogLevel` and `AlertLevel` now use a custom enum instead of the Unity `LogType` - Removed `PermissionState` in favor of `NotificationPermission` enum - Renamed `PermissionStateChanged` event to `NotificationPermissionChanged` ## [3.0.0-beta.2] + ### Fixed + - Correctly namedspaced the common MiniJSON utility to fix [#404](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/404) - Ensured code distributed with unitypackage would not reference other packages if missing - Swapped out code that was only available in Unity 2020 for backwards compatible implementations ## [3.0.0-beta.1] + - Complete overhaul to the public API of the SDK. While this release is in beta please see our included [example MonoBehaviour](Example/OneSignalExampleBehaviour.cs) for usage. - The included OneSignal Android SDK is now fully imported via EDM4U/gradle and will pull the latest version. Please see [OneSignal-Android-SDK Releases](https://github.com/OneSignal/OneSignal-Android-SDK/releases) for latest changes. - The included OneSignal iOS SDK is now fully imported via EDM4U/Cocoapods and will pull the latest version. Please see [OneSignal-iOS-SDK Releases](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) for latest changes. @@ -438,52 +585,74 @@ If you run into any problems, please don’t hesitate to add to this [issue](htt If you run into any problems, please don’t hesitate to [open an issue](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/new)! ## [2.14.6] + ### Added + - Included [Unity's VSP Attribution](https://github.com/Unity-Technologies/com.unity.vsp-attribution) code for distribution via the Asset Store. ## [2.14.5] + ### Changed + - Updated included Android SDK to [3.16.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/3.16.2) - Fixes for background image not showing and text not rendering in the RTL direction when a RTL system language is set. [#1475](https://github.com/OneSignal/OneSignal-Android-SDK/pull/1475) - Fix IAM preview message returning NPE in a preview case, due to message id being null. [#1463](https://github.com/OneSignal/OneSignal-Android-SDK/pull/1463) ## [2.14.4] + ### Fixed + - Removed use of C# 8.0 features to maintain compatibility + ### Changed + - Updated included Android SDK to [3.16.1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/3.16.1) - Avoid continuing with null IAM message Ids [#1386](https://github.com/OneSignal/OneSignal-Android-SDK/pull/1386) - Updated included iOS SDK to version [2.16.7](https://github.com/OneSignal/OneSignal-iOS-SDK/tree/2.16.7/) - In App Messaging now respects device orientation locks for Unity Applications [#1000](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1000) ## [2.14.3] + ### Fixed + - Added a delayed call when attempting to reshow the `OneSignalSetupWindow` after importing packages. - Moved the example code to a separate assembly definition so that it may be utilized in place. - The EDM4U setup step will rename the `Google.IOSResolver_v1.2.165.dll` on import in Unity 2021 and above. See EDM4U issue [#441](https://github.com/googlesamples/unity-jar-resolver/issues/441) for more information. + ### Changed + - Updated formatting and documentation within the [OneSignalExampleBehaviour.cs](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/main/OneSignalExample/Assets/OneSignal/Example/Scripts/OneSignalExampleBehaviour.cs) example code for clarity. - Marked `EnabledVibrate` and `EnableSound` as `Obsolete` with as they do not function on Android 8+. Please check out https://documentation.onesignal.com/docs/android-notification-categories for more information. ## [2.14.2] + ### Fixed + - Fixes rare iOS crash with some apps due to a threading issue. From [OneSignal-iOS-SDK PR #979](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/979) ## [2.14.1] + ### Fixed + - Corrected directory separators in post processor when building for iOS in a Windows environment. From PR [#376](https://github.com/OneSignal/OneSignal-Unity-SDK/pull/376) by [@SplenectomY](https://github.com/SplenectomY). Fixes [#375](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/375), [#377](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/377), [#380](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/380) ## [2.14.0] + ### Added + - A new Editor window under **Window > OneSignal** can be found which currently includes additional setup steps for installation. + ### Changed + - The OneSignal Unity SDK has now transitioned to [Unity Package Manager](https://docs.unity3d.com/Packages/com.unity.package-manager-ui@1.8/manual/index.html) support - If you are updating from a previous version of the OneSignal Unity SDK please follow the Unity Asset Store instructions in - the [README](https://github.com/OneSignal/OneSignal-Unity-SDK/README.md#unity-asset-store) to ensure a smooth transition. + the [README](https://github.com/OneSignal/OneSignal-Unity-SDK/README.md#unity-asset-store) to ensure a smooth transition. -[Unreleased]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.15...HEAD +[Unreleased]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.2.0-beta-01...HEAD +[5.2.0-beta-01]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.2.0-beta-01...5.2.0-beta-01 +[5.2.0-beta-01]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.15...5.2.0-beta-01 [5.1.15]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.14...5.1.15 [5.1.14]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.13...5.1.14 [5.1.13]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.12...5.1.13 diff --git a/OneSignalExample/Assets/OneSignal/Editor/OneSignal.UnityPackage.Editor.asmdef b/OneSignalExample/Assets/OneSignal/Editor/OneSignal.UnityPackage.Editor.asmdef index d90ee149f..25a02e94c 100644 --- a/OneSignalExample/Assets/OneSignal/Editor/OneSignal.UnityPackage.Editor.asmdef +++ b/OneSignalExample/Assets/OneSignal/Editor/OneSignal.UnityPackage.Editor.asmdef @@ -16,7 +16,7 @@ "versionDefines": [ { "name": "com.onesignal.unity.core", - "expression": "5.1.15", + "expression": "5.2.0-beta-01", "define": "ONE_SIGNAL_INSTALLED" } ], diff --git a/OneSignalExample/Assets/OneSignal/Example/OneSignal.UnityPackage.Example.asmdef b/OneSignalExample/Assets/OneSignal/Example/OneSignal.UnityPackage.Example.asmdef index e99841511..97c0a0974 100644 --- a/OneSignalExample/Assets/OneSignal/Example/OneSignal.UnityPackage.Example.asmdef +++ b/OneSignalExample/Assets/OneSignal/Example/OneSignal.UnityPackage.Example.asmdef @@ -18,7 +18,7 @@ "versionDefines": [ { "name": "com.onesignal.unity.core", - "expression": "5.1.15", + "expression": "5.2.0-beta-01", "define": "ONE_SIGNAL_INSTALLED" } ], diff --git a/OneSignalExample/Assets/OneSignal/VERSION b/OneSignalExample/Assets/OneSignal/VERSION index 40dc92612..ec3524845 100755 --- a/OneSignalExample/Assets/OneSignal/VERSION +++ b/OneSignalExample/Assets/OneSignal/VERSION @@ -1 +1 @@ -5.1.15 \ No newline at end of file +5.2.0-beta-01 \ No newline at end of file diff --git a/OneSignalExample/Packages/packages-lock.json b/OneSignalExample/Packages/packages-lock.json index eeb30d090..d67a96ab5 100644 --- a/OneSignalExample/Packages/packages-lock.json +++ b/OneSignalExample/Packages/packages-lock.json @@ -5,7 +5,7 @@ "depth": 0, "source": "local", "dependencies": { - "com.onesignal.unity.core": "5.1.15" + "com.onesignal.unity.core": "5.2.0-beta-01" } }, "com.onesignal.unity.core": { @@ -19,7 +19,7 @@ "depth": 0, "source": "local", "dependencies": { - "com.onesignal.unity.core": "5.1.15" + "com.onesignal.unity.core": "5.2.0-beta-01" } }, "com.unity.ai.navigation": { diff --git a/OneSignalExample/ProjectSettings/ProjectSettings.asset b/OneSignalExample/ProjectSettings/ProjectSettings.asset index b0309ea88..909fa5244 100644 --- a/OneSignalExample/ProjectSettings/ProjectSettings.asset +++ b/OneSignalExample/ProjectSettings/ProjectSettings.asset @@ -142,7 +142,7 @@ PlayerSettings: loadStoreDebugModeEnabled: 0 visionOSBundleVersion: 1.0 tvOSBundleVersion: 1.0 - bundleVersion: 5.1.15 + bundleVersion: 5.2.0-beta-01 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0 diff --git a/com.onesignal.unity.android/package.json b/com.onesignal.unity.android/package.json index e92df9e18..3a98182f1 100644 --- a/com.onesignal.unity.android/package.json +++ b/com.onesignal.unity.android/package.json @@ -1,11 +1,11 @@ { "name": "com.onesignal.unity.android", "displayName": "OneSignal Unity SDK - Android", - "version": "5.1.15", + "version": "5.2.0-beta-01", "unity": "2018.4", "description": "OneSignal is the market leader in customer engagement, powering mobile push, web push, email, and in-app messages.", "dependencies": { - "com.onesignal.unity.core": "5.1.15" + "com.onesignal.unity.core": "5.2.0-beta-01" }, "keywords": [ "push-notifications", diff --git a/com.onesignal.unity.core/Runtime/OneSignal.cs b/com.onesignal.unity.core/Runtime/OneSignal.cs index 60e43c492..f2483ea36 100755 --- a/com.onesignal.unity.core/Runtime/OneSignal.cs +++ b/com.onesignal.unity.core/Runtime/OneSignal.cs @@ -42,7 +42,7 @@ namespace OneSignalSDK /// public static partial class OneSignal { - public const string Version = "5.1.15"; + public const string Version = "5.2.0-beta-01"; /// /// The default static instance of the OneSignal Unity SDK diff --git a/com.onesignal.unity.core/Runtime/OneSignalPlatform.cs b/com.onesignal.unity.core/Runtime/OneSignalPlatform.cs index 34d1420f8..c05b517ed 100644 --- a/com.onesignal.unity.core/Runtime/OneSignalPlatform.cs +++ b/com.onesignal.unity.core/Runtime/OneSignalPlatform.cs @@ -40,7 +40,7 @@ namespace OneSignalSDK { public abstract class OneSignalPlatform { - public const string VersionHeader = "050115"; + public const string VersionHeader = "050200"; internal static event Action OnInitialize; diff --git a/com.onesignal.unity.core/package.json b/com.onesignal.unity.core/package.json index 5411e1d92..2148920ea 100644 --- a/com.onesignal.unity.core/package.json +++ b/com.onesignal.unity.core/package.json @@ -1,7 +1,7 @@ { "name": "com.onesignal.unity.core", "displayName": "OneSignal Unity SDK - Core", - "version": "5.1.15", + "version": "5.2.0-beta-01", "unity": "2018.4", "description": "OneSignal is the market leader in customer engagement, powering mobile push, web push, email, and in-app messages.", "dependencies": { diff --git a/com.onesignal.unity.ios/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm b/com.onesignal.unity.ios/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm index 651acf37b..faa768177 100644 --- a/com.onesignal.unity.ios/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm +++ b/com.onesignal.unity.ios/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm @@ -97,7 +97,7 @@ - (void)setOneSignalUnityDelegate:(id )delegate { - (BOOL)oneSignalApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [OneSignalWrapper setSdkType:@"unity"]; - [OneSignalWrapper setSdkVersion:@"050115"]; + [OneSignalWrapper setSdkVersion:@"050200"]; [OneSignal initialize:nil withLaunchOptions:launchOptions]; if ([self respondsToSelector:@selector(oneSignalApplication:didFinishLaunchingWithOptions:)]) diff --git a/com.onesignal.unity.ios/package.json b/com.onesignal.unity.ios/package.json index b1b1c8a24..2d45a833b 100644 --- a/com.onesignal.unity.ios/package.json +++ b/com.onesignal.unity.ios/package.json @@ -1,11 +1,11 @@ { "name": "com.onesignal.unity.ios", "displayName": "OneSignal Unity SDK - iOS", - "version": "5.1.15", + "version": "5.2.0-beta-01", "unity": "2018.4", "description": "OneSignal is the market leader in customer engagement, powering mobile push, web push, email, and in-app messages.", "dependencies": { - "com.onesignal.unity.core": "5.1.15" + "com.onesignal.unity.core": "5.2.0-beta-01" }, "keywords": [ "push-notifications",