-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on SKQueueManager.receivedFailedTransaction #77
Comments
Hi, @Vaberer! Thank you for the issue. According to the stack trace you have provided, it looks like this crash was occurred within StoreKit framework. How often do you observe this behaviour? Are there any other details you can provide? |
Hello @x401om thanks for your reply, maybe I found the root cause, I'm also observing As I understand, I should pass Am. I correct? if so, I'd like to confirm my current implementation, when a user wants to buy something, I'm calling
and finishing transactions are made in the app layer. We need to integrate Adapty due to analytics and pulling the products from Adapty paywalls. Is my understanding correct? Thanks |
@Vaberer, you are correct. If you don't want the Adapty SDK to finish transactions, you have to activate it in observer mode. It seems like StoreKit is not very reliable at finishing the same transaction twice, as we can see. By the way, I am curious, what is the reason you want to finish transactions by yourself? Observer Mode is intended to be used as you described, but we did not expect users to use our products and the makePurchase method in that mode, since they are supposed to have their own purchase infrastructure. There is no issue if you use makePurchase, but I have to ask for the reasons, and perhaps you will consider using the Adapty SDK in full mode. |
@x401om let me explain our situation and maybe you can help. We cooperate with a marketing agency and they want us to implement Adapty for analytics, pulling products and running ab tests. However we, originally, had our own system for managing in-app purchases and we had to make our and Adapty systems work together. Our systems also have our own analytics and logic (i.e: sending receipts to our backend) to make everything work. One idea came to my mind: We just need to listen to the delegate methods to send data to our backend and do our own analytics. Is this approach correct? Will Adapty analytics and ab testing work? Thanks. |
@Vaberer In Observer Mode, the only difference lies in calling the Additionally, you can utilize the |
in this case we can close the issue, thank you for your help |
Operating System: iOS 17.4.1 Fatal Exception: NSRangeException
This crash affected users of App Store. But we don't observe and don't finish the transactions, in contrast to the previous justification. All we do is use Adapty throughout the entire purchasing process. |
Operating System: iOS 17.2.1
Device: Phone 15 Pro Max
SDK Version: Adapty 2.7.0
Crashed: Fatal Exception: NSRangeException
[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array
This crash occurred for App Store users.
The text was updated successfully, but these errors were encountered: