purchases-flutter icon indicating copy to clipboard operation
purchases-flutter copied to clipboard

Presenting the promo code sheet crashes [macos M1]

Open joecks opened this issue 3 years ago • 1 comments

https://github.com/RevenueCat/purchases-flutter/blob/8937a1fc82a89649cc54be9ae53018daff69782e/ios/Classes/PurchasesFlutterPlugin.m#L356

Version: 3.9.5 OS: MacOS 12.3

With macos 12.3 it ios possible to run iOS apps on MacOS. But there seems to be an issue with the present promo code sheet method, which crashes the App:

Runner	-[SKPaymentQueue presentCodeRedemptionSheet]: unrecognized selector sent to instance 0x156ef3440

joecks avatar Jun 14 '22 02:06 joecks

@joecks 👋 thanks for alerting us to the crash. Unfortunately, even though the Apple docs say this is available for the mac runtime, it's not, and causes a crash. We fixed the crash by logging an error instead in our native iOS library here, but that fix hasn't made it into our Flutter SDK yet.

We're working on updating all of our hybrids to the latest native versions, so this should get shipped soon! I'll report back here when it is out.

beylmk avatar Jun 14 '22 18:06 beylmk

The update has made it into flutter. I'm closing this issue for now, but let us know if you run into anything else!

aboedo avatar Sep 06 '22 14:09 aboedo