Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Unable to display ads on iOS 15.7.6 and iOS 17.0.1

Discussion in 'Unity Ads & User Acquisition' started by sekone1, Nov 21, 2023.

  1. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
    It cannot display ads when using UnityAds iOS SDK v4.9.2 on iOS 15.7.6 and 17.0.1,
    but it can display normally on iOS 14.4.
    It also cannot display ads when using the official testing project on Github.
    I guess it may not be able to display on iOS 15 or above!
    Can you test it?


    log:

    2023-11-21 21:09:56.843017+0800 test_unityads_492[12772:795857] I/UnityAds: +[UnityServices legacyStart:testMode:delegate:] (line:102) :: Initializing Unity Ads 4.9.2 (4920) with game id 14850 in test mode, session 72AF6B32-5187-4D2E-8283-52CBE6285106

    2023-11-21 21:09:56.853629+0800 test_unityads_492[12772:796277] I/UnityAds: -[USRVInitializeStateConfig execute] (line:35) ::

    =============== USRVInitializeStateConfig =============

    2023-11-21 21:09:56.853796+0800 test_unityads_492[12772:796277] I/UnityAds: -[USRVInitializeStateConfig executeWithLoader] (line:40) ::

    =============== USRVInitializeStateConfig TSI FLOW/ USING LOADER =============

    2023-11-21 21:09:56.872482+0800 test_unityads_492[12772:796277] I/UnityAds: -[USRVConfigurationRequestFactoryWithLogs requestOfType:] (line:25) :: Configuration Request URL: https://configv2.unityads.unity3d.com/webview/4.9.2/release/config.json

    2023-11-21 21:09:57.045226+0800 test_unityads_492[12772:796278] [tcp] tcp_input [C1.1:3] flags=[R.] seq=0, ack=2469843115, win=0 state=SYN_SENT rcv_nxt=0, snd_una=2469843114

    2023-11-21 21:09:57.047051+0800 test_unityads_492[12772:796278] Connection 1: received failure notification

    2023-11-21 21:09:57.047153+0800 test_unityads_492[12772:796278] Connection 1: failed to connect 1:61, reason -1

    2023-11-21 21:09:57.047205+0800 test_unityads_492[12772:796278] Connection 1: encountered error(1:61)

    2023-11-21 21:09:57.050730+0800 test_unityads_492[12772:796278] Task <40A583E5-3F33-4D01-989B-05FD320DE5FC>.<0> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])

    2023-11-21 21:09:57.050906+0800 test_unityads_492[12772:796278] NSURLConnection finished with error - code -1004

    2023-11-21 21:10:07.061026+0800 test_unityads_492[12772:796277] I/UnityAds: -[USRVInitializeStateConfig execute] (line:35) ::

    =============== USRVInitializeStateConfig =============

    2023-11-21 21:10:07.061734+0800 test_unityads_492[12772:796277] I/UnityAds: -[USRVInitializeStateConfig executeWithLoader] (line:40) ::

    =============== USRVInitializeStateConfig TSI FLOW/ USING LOADER =============

    2023-11-21 21:10:07.067703+0800 test_unityads_492[12772:796277] I/UnityAds: -[USRVConfigurationRequestFactoryWithLogs requestOfType:] (line:25) :: Configuration Request URL: https://configv2.unityads.unity3d.com/webview/4.9.2/release/config.json

    2023-11-21 21:10:07.092530+0800 test_unityads_492[12772:796280] [tcp] tcp_input [C2.1:3] flags=[R.] seq=0, ack=422961123, win=0 state=SYN_SENT rcv_nxt=0, snd_una=422961122

    2023-11-21 21:10:07.094963+0800 test_unityads_492[12772:796280] Connection 2: received failure notification

    2023-11-21 21:10:07.095062+0800 test_unityads_492[12772:796280] Connection 2: failed to connect 1:61, reason -1

    2023-11-21 21:10:07.095111+0800 test_unityads_492[12772:796280] Connection 2: encountered error(1:61)

    2023-11-21 21:10:07.096451+0800 test_unityads_492[12772:796280] Task <9167078A-1FDB-4030-B604-615B4EE593BB>.<0> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])

    2023-11-21 21:10:07.096590+0800 test_unityads_492[12772:796280] NSURLConnection finished with error - code -1004

    2023-11-21 21:10:27.099518+0800 test_unityads_492[12772:796280] I/UnityAds: -[USRVInitializeStateConfig execute] (line:35) ::

    =============== USRVInitializeStateConfig =============

    2023-11-21 21:10:27.099839+0800 test_unityads_492[12772:796280] I/UnityAds: -[USRVInitializeStateConfig executeWithLoader] (line:40) ::

    =============== USRVInitializeStateConfig TSI FLOW/ USING LOADER =============

    2023-11-21 21:10:27.102466+0800 test_unityads_492[12772:796280] I/UnityAds: -[USRVConfigurationRequestFactoryWithLogs requestOfType:] (line:25) :: Configuration Request URL: https://configv2.unityads.unity3d.com/webview/4.9.2/release/config.json

    2023-11-21 21:10:27.119095+0800 test_unityads_492[12772:796330] [tcp] tcp_input [C3.1:3] flags=[R.] seq=0, ack=3124603789, win=0 state=SYN_SENT rcv_nxt=0, snd_una=3124603788

    2023-11-21 21:10:27.120261+0800 test_unityads_492[12772:796330] Connection 3: received failure notification

    2023-11-21 21:10:27.120333+0800 test_unityads_492[12772:796330] Connection 3: failed to connect 1:61, reason -1

    2023-11-21 21:10:27.120365+0800 test_unityads_492[12772:796330] Connection 3: encountered error(1:61)

    2023-11-21 21:10:27.121326+0800 test_unityads_492[12772:796330] Task <17E1F385-AEAE-421D-9EA7-F48D9A9C695D>.<0> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])

    2023-11-21 21:10:27.121528+0800 test_unityads_492[12772:796330] NSURLConnection finished with error - code -1004
     
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    The log you attached shows that the device encountered network problems when the SDK was initialized. Can you check whether the network environment is normal?
     
  3. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
    The network is good. Opening other apps has a network. Have you tested it on iOS 17?I don't know what to do now.
     
  4. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    It's working on iOS 17 on my end, in the log we can see the "HTTP load failed" error, which means there is a network error, maybe you can use a proxy tool such as Charles to analyze the network log.
     
  5. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
  6. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
  7. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
    I have tried many times but still can't open it!

    err.png
     
  8. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    Can this URL be opened in your mobile phone's browser? Please try it using a cellular network.
     
  9. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
    I tried using a cellular network, but it couldn't be opened, and even my colleague's phone couldn't be opened
     
  10. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    My Chinese colleagues and I tested this URL and currently cannot reproduce the issue you mentioned. In order to further investigate it, please provide the following information:
    *What are the specific steps for your testing?
    *What test devices do you use? What are the system versions?
    * Does this issue occur on certain devices or all devices?
    * Can this URL be opened if using a VPN?
    * Do the devices used for testing have any ad-blocking apps installed?
     
  11. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
    devices :
    iphone 6s plus (ios 15.7.6)
    iphone 8 plus (ios 14.4)
    iphone 12 (ios 17.1.1)

    The url couldn't be opened on all devices. If VPN is used, it can be opened on all devices.

    Only iOS 14.4 device can display ads. If VPN is used, it can display ads on all devices.

    All devices have not installed advertising blocking applications.
     
  12. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
  13. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
    The url couldn't be opened on iOS 14.4.

    Ping is ok on my computer, but it cannot be opened on the browser!



    err2.png
     
  14. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    Could you please provide a Charles log? As you can see, we tested it with Charles in CN multiple times, and the URL can be opened.
    upload_2023-11-27_11-38-26.png
     
  15. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
    err3.png

    Refused our connection request!

    Maybe it's not that the whole of China cannot be opened, it cannot be opened in Xiamen, China
     
    Last edited: Nov 27, 2023
  16. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
  17. sekone1

    sekone1

    Joined:
    Jan 5, 2023
    Posts:
    10
  18. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    I don't think it's related to a special SDK version. I'll test it and confirm with the team. before we find the root cause, you can use a VPN for testing, I think this URL(https://configv2.unityads.unity3d.com/webview/4.9.2/release/config.json) is only couldn't be opened in Xiamen for special reasons, which is out of our control.