LucasBrum:
I have an app with purchase on ios and android, on ios the restore purchase seems to start by itself, all purchased items are delivered even without pressing the restore button.
Here is log :
2022-07-01 13:59:07.245688-0300 ColoringUpdate[1688:752814] UnityIAP UnityEarlyTransactionObserver: Created
2022-07-01 13:59:07.246472-0300 ColoringUpdate[1688:752814] UnityIAP UnityEarlyTransactionObserver: Registered for lifecycle events
2022-07-01 13:59:07.375721-0300 ColoringUpdate[1688:752814] Built from ‘2021.3/staging’ branch, Version ‘2021.3.4f1 (cb45f9cae8b7)’, Build type ‘Release’, Scripting Backend ‘il2cpp’
2022-07-01 13:59:07.376372-0300 ColoringUpdate[1688:752814] MemoryManager: Using ‘Default’ Allocator.
[UnityMemory] Configuration Parameters - Can be set up in boot.config
“memorysetup-bucket-allocator-granularity=16”
“memorysetup-bucket-allocator-bucket-count=8”
“memorysetup-bucket-allocator-block-size=4194304”
“memorysetup-bucket-allocator-block-count=1”
“memorysetup-main-allocator-block-size=16777216”
“memorysetup-thread-allocator-block-size=16777216”
“memorysetup-gfx-main-allocator-block-size=16777216”
“memorysetup-gfx-thread-allocator-block-size=16777216”
“memorysetup-cache-allocator-block-size=4194304”
“memorysetup-typetree-allocator-block-size=2097152”
“memorysetup-profiler-bucket-allocator-granularity=16”
“memorysetup-profiler-bucket-allocator-bucket-count=8”
“memorysetup-profiler-bucket-allocator-block-size=4194304”
“memorysetup-profiler-bucket-allocator-block-count=1”
“memorysetup-profiler-allocator-block-size=16777216”
“memorysetup-profiler-editor-allocator-block-size=1048576”
“memorysetup-temp-allocator-size-main=4194304”
“memorysetup-job-temp-allocator-block-size=2097152”
“memorysetup-job-temp-allocator-block-size-background=1048576”
“memorysetup-job-temp-allocator-reduction-small-platforms=262144”
“memorysetup-temp-allocator-size-background-worker=32768”
“memorysetup-temp-allocator-size-job-worker=262144”
“memorysetup-temp-allocator-size-preload-manager=262144”
“memorysetup-temp-allocator-size-nav-mesh-worker=65536”
“memorysetup-temp-allocator-size-audio-worker=65536”
“memorysetup-temp-allocator-size-cloud-worker=32768”
“memorysetup-temp-allocator-size-gfx=262144”
→ applicationDidFinishLaunching()
Setting UIViewControllerBasedStatusBarAppearance to NO is no longer supported.
Apple actively discourages that, and all application-wide methods of changing status bar appearance are deprecated
2022-07-01 13:59:07.860165-0300 ColoringUpdate[1688:752814] UnityIAP UnityEarlyTransactionObserver: Added to the payment queue
→ applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1; jobified=1
Initializing Metal device caps: Apple A11 GPU
Initialize engine version: 2021.3.4f1 (cb45f9cae8b7)
2022-07-01 13:59:08.336726-0300 ColoringUpdate[1688:752814] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x10c2656d0>.
UnloadTime: 4.630000 ms
2022-07-01 13:59:11.421268-0300 ColoringUpdate[1688:752814] UnityIAP: Requesting 9 products
2022-07-01 13:59:11.423022-0300 ColoringUpdate[1688:752814] UnityIAP: Requesting product data…
2022-07-01 13:59:12.545609-0300 ColoringUpdate[1688:753059] UnityIAP: Received 9 products
2022-07-01 13:59:12.597533-0300 ColoringUpdate[1688:752814] UnityIAP: Add transaction observer
2022-07-01 13:59:12.597664-0300 ColoringUpdate[1688:752814] UnityIAP: UpdatedTransactions
2022-07-01 13:59:12.599265-0300 ColoringUpdate[1688:752814] UnityIAP UnityEarlyTransactionObserver: Request to initiate queued payments
The logs are expected. Do you receive the ProcessPurchase callback for these products? If not, then Restore is not occurring. It’s working as expected in my testing using this project https://discussions.unity.com/t/700293/4