UnityAds hides main activity on android

Hi.
I’ve encountered strange problem on android: when UnityAds show() is called, main activity becames paused and hidden, but no ads is shown. If application is restored manually ads will be shown and everything goes as it should.

UnityAds debug log:
03-31 21:39:58.355 15652-16399/? I/UnityAds: com.unity3d.ads.api.Sdk.logInfo() (line:68) :: Opening performance ad unit with orientation 10, hardware acceleration enabled
03-31 21:39:58.355 15652-16399/? D/UnityAds: com.unity3d.ads.api.AdUnit.open() (line:64) :: Unity Ads opening new hardware accelerated ad unit activity
03-31 21:39:58.385 15652-16399/? D/UnityAds: com.unity3d.ads.api.AdUnit.open() (line:115) :: Opened AdUnitActivity with: [“videoplayer”,“webview”]
03-31 21:39:58.385 15652-16399/? D/UnityAds: com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleCallback([[“176”,“ERROR”,[“COULDNT_GET_VALUE”,“mediation.ordinal.value”]],[“177”,“OK”,[ ]],[“178”,“OK”,[ ]],[“179”,“OK”,[ ]],[“180”,“OK”,[ ]],[“181”,“OK”,[ ]],[“182”,“OK”,[ ]],[“183”,“OK”,[ ]]]);
03-31 21:41:58.612 15652-15652/? D/UnityAds: com.unity3d.ads.webview.WebViewApp.invokeJavascriptMethod() (line:88) :: Invoking javascript: javascript:window.nativebridge.handleEvent([“BROADCAST”,“ACTION”,“screenListener”,“android.intent.action.SCREEN_OFF”,“”,{“why”:3}]);

Can anybody point me where to look for the cause of this problem?

Thanks in advance.

Is this from Unity or native Android project?

Unity

Well, mysterious behavior was caused by AppsFlyer plugin, which called moveTaskToBack on ApplicationPaused.
Case solved.