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

Black screen before showing ads

Discussion in 'Unity Ads & User Acquisition' started by luvjungle, Jan 14, 2021.

  1. luvjungle

    luvjungle

    Joined:
    Dec 18, 2017
    Posts:
    58
    Hi all!

    I am using unity 2019.2.21 and updated Advertisment package to version 3.6.1 (from 3.4.7).
    With previous version ads were showed almost immediatly, but after update, the time of black screen _before_ advertisment increased for about 1 sec.
    Is there anything I can do about it?

    And one more thing. After update google play says that my app has 2 new features. I didn't add new plugins or changed player settings, or made anything vr-related. Can I set required false in manifest?
    android.software.vr.high_performance, android.software.vr.mode

    Thank you.
     
    Last edited: Jan 14, 2021
  2. luvjungle

    luvjungle

    Joined:
    Dec 18, 2017
    Posts:
    58
    Anyone?
     
  3. Unity_Adamski

    Unity_Adamski

    Unity Technologies

    Joined:
    Jul 20, 2020
    Posts:
    110
    Hi, I am unsure as to why upgrading to the latest SDK would increase the time taken for the web view to render. Would you be able to post device logs from a session where this issue is happening? Also could you make sure you don't accidentally have two instances of the SDK in your project as this may cause latency issues among others.
     
  4. luvjungle

    luvjungle

    Joined:
    Dec 18, 2017
    Posts:
    58
    Hi Adam! Thank you for your response. I downgraded package back to 3.4.7 and will try to collect some logs before and after.

    About 2 instances: I am using packman version of ads, aren't they suppose to make clean install of new version? Or compiler should throw exceptions about duplicate classes or something?
     
  5. Unity_Adamski

    Unity_Adamski

    Unity Technologies

    Joined:
    Jul 20, 2020
    Posts:
    110
    Hi, yes if you are only using the packman version it should be making a clean install when you change version. Sometimes people will use the asset store version and not fully remove all the assets when deleting the,m, this sometimes leads to unpredictable behavior in the SDK.

    When switching SDK versions are you able to notice a significant difference in the duration the black screen shows for?
     
  6. luvjungle

    luvjungle

    Joined:
    Dec 18, 2017
    Posts:
    58
    It appears that it not depends on SDK version, but rather on Advertisment.Load() workflow.
    The thing is, I got Ads Controller script from previous dev and he used Load() methods.
    I red in docs that Load() workflow is in beta and one needs to sign up to use it, so I asked my colleauges and publisher if they signed up, but nobody could answer. Unfortunately, I can't contact previous dev. So I assumed that nobody signed up for beta and changed Advertisment.Load() workflow to normal. After that thing with long black screen happened. Version with Load method works fine.
    Can you please make clear if Load() is still in beta?

    The purpose of those manipulations is to get rid of ANRs that increased after we started to show more ads