Appium driver is fetching different url than current page url when i switched from native to webview context in iOS appium

When i switched to webview context from native context, some times its fetching different url than current url, but some times its fetching correct url
i have put waits, but still same issue is coming

When appium driver fetched different url tests will fail

In iOS app, for webview is developed using WKWEBVIEW

Note: Same webview in android app working properly

I’m unable to identify the problem, Is it a problem of Appium driver or WKWEBVIEW , If any one knows the reason why this problem coming, help me to solve the issue