com.unity.purchasing 4.11.0
Source docsNotes: processedReleased March 11, 2024
Unity Compatibility
Minimum Unity: 2020.3
Package Dependencies
- com.unity.modules.androidjni (1.0.0)
- com.unity.modules.jsonserialize (1.0.0)
- com.unity.modules.unitywebrequest (1.0.0)
- com.unity.services.core (1.8.2)
- com.unity.ugui (1.0.0)
✨ Features
- GooglePlay - `IGooglePlayConfiguration.SetMaxConnectionAttempts(int maxConnectionAttempts)` has been added to specify the max connection attempts to the Google Play Store.
- Apple - Added privacy manifest to comply with Apple's new privacy requirements. More details on how the Unity Engine supports this can be found here.
- Added `ConfigurationBuilder.logUnavailableProducts` to specify if unavailable products should be logged.
📈 Improvements
- GooglePlay - The default max connection attempt to the Google Play Store has been increased from 1 to 3. See `IGooglePlayConfiguration.SetMaxConnectionAttempts` to configure this to a different value.
- Apple - The log when retrieving products (SKProductsResponse) now also contains the invalid products count.
- Improved `IStoreListener.OnInitializeFailed` for `InitializationFailureReason.NoProductsAvailable` by adding a message to clarify whether the store returned products or not.
🔧 Bug Fixes
- GooglePlay - Fixed AndroidJavaObject not being disposed causing a global reference table overflow in an edge case.
- GooglePlay - Fixed bug causing BillingClient duplication resulting in ANR.
- Apple - Fixed isFamilyShareable on tvOS to be only available on supported versions (14.0 and above).
- Apple - Error codes when a purchase fails now always returns the code from Apple instead of defaulting to `SKErrorUnknown`.
- Fixed Analytics' transactionServer being null.
