Search Unity

In-App Purchasing Deprecated API Usage - UIWebView

Discussion in 'Unity IAP' started by Bit_256, Jan 9, 2020.

  1. Bit_256

    Bit_256

    Joined:
    Dec 10, 2013
    Posts:
    4
    Hi guys, I using unity 2019.2.17f1 and still getting warning from Apple Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs.
    I search in Xcode search field "webview" and found something like this :

    Il2CppMetadataUsage.c
    Classes/Native/Il2CppMetadataUsage.c:extern const uint32_t MoolahStoreImpl_ClosePayWebView_m69321FE5F49ACE555849E874F046FE212CC71C2B_MetadataUsageId;

    Stores.cpp
    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PayMethod_showPayWebView_m9172B10E5160E863A867127F264B99FA55A774CD (String_t* ___paymentURL0, String_t* ___authGlobal1, String_t* ___transactionId2, String_t* ___hashKey3, String_t* ___customID4, const RuntimeMethod* method);

    Stores_CodeGen.c
    extern
    void MoolahStoreImpl_ClosePayWebView_m69321FE5F49ACE555849E874F046FE212CC71C2B ();

    I'm using Unity In-app purchasing in Service tab and import the package.

    I suspect because this I got warning from Apple about using UIWebView. Need help to fix this, Thank you.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Are you also using Unity Ads by chance? Or just IAP. Those references would not be expected to be included in the binary.
     
  3. Bit_256

    Bit_256

    Joined:
    Dec 10, 2013
    Posts:
    4
    No, I didn't using Unity Ads. I using Facebook, Firebase, Google Mobile Ads, and Unity In-App Purchasing. I make sure by using Search in Xcode "UIWebView" but didn't get any result but when I search "WebView", I found that in the first post.

    I don't understand why Apple didn't send the detail about this issue like which code that contain UIWebView.