Baseflow/LottieXamarin

Lottie.Forms.AnimationView.OnFinishedAnimation does not fire all the time.

pmahend1 opened this issue ยท 0 comments

๐Ÿ› Bug Report

Lottie.Forms.AnimationView.OnFinishedAnimation doesn't fire all the time.
I have noticed this in the cases where web-view is part of the Page where animation view is present
Also noticed it in the cases where ImageView is part of the pge where the animation view is present.

So irrespective of what we have the event doesn't get fired sometimes.

As a work-around we are setting explcit Task.Delay but that should not be the ideal way of handling these.

Expected behavior

Should trigger OnFinishedAnimation every time

Reproduction steps

  • Create a Xamarin forms project and Lottie Xamarin forms NuGet
  • Add a ContentPage with a Lottie.Forms.AnimationView and Webview
  • Add OnFinishedAnimation event handler
  • Subscribe for WebView.Navigated event : Once web page loaded run the animation with AnimationView.PlayAnimation
  • Notice that OnFinishedAnimaton does not fire all the time.

Configuration

Version: Com.Airbng.Xamarin.Forms.Lottie 4.0.10

Platform:

  • ๐Ÿ“ฑ iOS
  • ๐Ÿค– Android
  • ๐Ÿ WPF
  • ๐ŸŒŽ UWP
  • ๐ŸŽ MacOS
  • ๐Ÿ“บ tvOS
  • ๐Ÿ’ Xamarin.Forms