Xamarin iOS: task delay problem

I created an application using the Xamarin Form. In this application, I created ExtendedWebViewso that I can call the javascript function from C #. I caused a delay of about 50 milliseconds before calling the javascript function. On all devices, such as Android, iOS 10, Windows 8, Windows 8.1 and Windows 10. Everything works fine. But in iOS 11, the javascript function that I call becomes lagging over time. I do not know why this happens in ios 11. Are there any changes made to ios 11 webview? I use UIWebview. I tried to include it in WkWebview, but still having the same problem.

Task.Delay(TimeSpan.FromMilliseconds(48)).Wait();
Xamarin.Forms.Device.BeginInvokeOnMainThread(() =>
{
    if (this.WebViewContainer.Children.Count > this.AudioPage)
    {
        ((ExtendedWebview)this.WebViewContainer.Children[this.AudioPage]).Eval("timeUpdater1(" + this.Position + ")");
    }
    AudioState = _audioPlayer.GetMediaState();
});

I am using Xamarin Forms v2.3.2.127. Could this be due to the dated form of Xamarin?

+4
source
1

. 100%, 2.3.2 wayyyyy , 2.5.x. , xamarin , , , .

( , .)

, , , , , xamarin, , xamarin, .

+1

Source: https://habr.com/ru/post/1694214/


All Articles