xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.49k stars 515 forks source link

Alternatives for StoreKit 1 deprecation in iOS 18.0 #21565

Closed RamType0 closed 4 weeks ago

RamType0 commented 4 weeks ago

Apple platform

iOS, macOS, Mac Catalyst, tvOS

Framework version

net8.0-*

Affected platform version

.NET 8.0

Description

According to Apple Developer Documentation

Most of StoreKit 1 APIs are deprecated in iOS 18.0, macOS 15.0, Mac Catalyst 18.0, and tvOS 18.0.

But I am recognizing that StoreKit 2 bindings does not exist in MAUI.

How can we continue support of App Store purchase in MAUI ?

Steps to Reproduce

  1. Reference SKProductsRequest in code.
  2. CA1422 warnings will be emitted.

Did you find any workaround?

No response

Build logs

No response

rolfbjarne commented 4 weeks ago

Closing as a duplicate of #16893.

RamType0 commented 4 weeks ago

You maybe mistaking what I mean with the word "deprecation".

For many years, StoreKit 1 has been marked as not recommended way, and we SHOULD use StoreKit 2 instead.

But as of iOS 18.0, StoreKit 1 is no longer working, and we MUST use StoreKit 2 instead.