Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question IAP stops working after integrating MobileAdsSDK

Discussion in 'Unity IAP' started by magister_yoda_, May 23, 2023.

  1. magister_yoda_

    magister_yoda_

    Joined:
    Mar 27, 2016
    Posts:
    31
    After adding YandexMobileAds sdk the IAP system stoped working. I call
    UnityPurchasing.Initialize(this, builder);
    but this method
    OnInitialized(IStoreController controller, IExtensionProvider extensions)
    is never called. Also there is no error or exception.

    OnInitializeFailed
    also is not called.
    When I remove totally the YandexMobileAds from the project, the IAP still doesn't work. Though before integrating this SDK the IAP worked just fine.
    What should I do to make the IAP work as previously?

    UPD.
    This i saw in XCode

    ProductName[6463:2287920] UnityIAP: SKProductRequest::didFailWithError: 0, Error Domain=SKErrorDomain Code=0 "Произошла неизвестная ошибка" UserInfo={NSLocalizedDescription=Произошла неизвестная ошибка, NSUnderlyingError=0x2810e7330 {Error Domain=ASDErrorDomain Code=950 "Unhandled exception" UserInfo={NSLocalizedDescription=Unhandled exception, NSLocalizedFailureReason=An unknown error occurred}}}. Unity Purchasing will retry in 60 seconds
     
    Last edited: May 23, 2023
    spabtech likes this.
  2. spabtech

    spabtech

    Joined:
    Nov 1, 2018
    Posts:
    2
    Hello, I have the same issue. Did you happen to find a fix for this. Could you please let me know
     
  3. magister_yoda_

    magister_yoda_

    Joined:
    Mar 27, 2016
    Posts:
    31
    Hello. Yeap, it turned out that it happens because of FacebookSDK. I removed the FacebookSDK and everything starts working fine. In my case YandexMobileAds and FacebookSDK somehow don't allow the Unity IAP system works correct.