adaptyteam / AdaptySDK-iOS

iOS SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
368 stars 38 forks source link

Constant Apple ID request on the simulator #66

Closed alexflm closed 7 months ago

alexflm commented 1 year ago

Hello!

I get an Apple ID authorization request every time I run the app on the simulator. Is this how it should be? If so, it would be nice if you could add the ability to disable this for debug mode. I didn't have such a problem with the RC service.

Adapty Mode

observer

Adapty SDK Version

2.7.0

Xcode Version

14.3.1

Installation Method

SPM

Targeted Platforms

iOS

snowtema commented 1 year ago

The same problem

x401om commented 11 months ago

Hi, guys. Thank you for reaching out. This behavior is caused by our internal logic, which requests receipt from StoreKit. The only way we can eliminate this behavior is by adding support for StoreKit configuration files. For now, we have plans to add this option in Q1, 2024.

ondrejkorol commented 10 months ago

Hi @x401om , I'm seeing this issue on real devices as well (when building from Xcode using debug/release configuration). Just calling Adapty.activate(...) will trigger this alert right after the launch. Does it mean even our testers via TestFlight will experience this? Is there anything we can do to postpone the alert until it's needed (checking the subscription, restoring purchases etc)? Thanks!

x401om commented 7 months ago

Hi everyone! In version 2.10.0 of our SDK, we've updated how we handle StoreKit receipts. Starting from iOS 15.0, receipts are no longer needed for all devices, eliminating Apple ID Authorization requests.

However, please keep in mind that the receipt is still essential for Adapty SDK to work correctly. You might see this pop-up on simulators before iOS 15 and occasionally in production if the user isn't authorized at the moment and the device runs a version prior to iOS 15.

Considering the original request is fulfilled, I'm closing the issue.