Open dimaischenko opened 11 months ago
Collected more logs. The error also occurs in ios 16.6.1
(and 17.0
) , the purchaseUpdatedListener(purchase)
method is called with undefined
value in purchase
after successful subscription
It may be because of StoreKit 2 they (Apple) changed API and in this library the transactionReceipt
was replaced by verificationResultIOS
aka jwsRepresentation - see SubscriptionPurchase
type.
Best info about this we found in Apple WWDC videos:
@cervebar Thank you for the response! As I understand it, StoreKit 2 is enabled by:
setup({storekitMode: 'STOREKIT2_MODE'})
I didn't set this at all. So by default I am using Store Kit 1. Or am I wrong?
That's right. From the doc:
STOREKIT1_MODE: Will not enable Storekit 2 even if the device supports it. Thigs will work as before, minimum changes required in the migration guide (default)
HYBRID_MODE: Will enable Storekit 2 for iOS devices > 15.0 but will fallback to Sk1 on older devices. There are some edge cases that you need to handle in this case (described in migration guide). This mode is for developers that are migrating to Storekit 2 but want to keep supporting older versions.
STOREKIT2_MODE: Will only enable Storekit 2. This disables Storekit 1. This is for apps that have already targeted a min version of 15 for their app.
Have you tested support on iOS 17? Among my users already have versions of ios 17 (although the off release is tomorrow, September 18), they are experiencing a crash when trying to purchase. It seems in
requestPurchase
orrequestSubscription
. Has anyone encountered this problem? On all previous versions of iOS everything works.Firebase Crashlytics Logs:
Environment: