Webview, redirection , app launch

I encountered below error around 1, Feb, 2021. afterword.

Symptom
  • when our App is installed, ready to use.

  • before 2/1 , 2021 ( OK )

if our app is launched from webview on third app -> execute scheme code as closing the webview including JS -> "window.location.href = downUrl;"
not executed.
  • After 2/1 , 2021 ( Not OK )

if our app is launched from webview on third app -> no execution of scheme code as closing the webview -> "window.location.href = downUrl; "
executed.

this is our source.
======================================================
var scheme = "xxxxx://xxxxx?onlnAuthTrdNo=" + onlnAuthTrdNo + "&onlnFrcDvsCd=" + onlnFrcDvsCd;
var downUrl = "~~~~/idxxxxxxxxxx";

function runApp(){
var clickedAt = +new Date;
var appCheckTimer = setTimeout(function(){
if (+new Date - clickedAt < 2000){
window.location.href = downUrl;
}
}, 500)
window.location.href = scheme;
}
runApp();
======================================================

the source above works fine until 1, Feb, 2021. this source redirects user to the app store once there is
no app to launch over wkwebview. and if it exists then webview works as plan.

but the above source no longer works as it was since 1. Feb. 2021.
now it redirects a user to App store preview no matter app exists or not.

Could anyone help me out with this matter why it work differently since that time?

Webview, redirection , app launch
 
 
Q