xamarin-forms-tab-badge icon indicating copy to clipboard operation
xamarin-forms-tab-badge copied to clipboard

Plugin.Badge is not working with FFImageLoading or Xamarin.Forms.Nuke on iOS

Open acuntex opened this issue 3 years ago • 1 comments

🐛 Bug Report

When using Plugin.Badge in combination with FFImageLoading (and the method CachedImageRenderer.InitImageSourceHandler()) or Xamarin.Forms.Nuke (and the method Xamarin.Forms.Nuke.FormsHandler.Init()), the Badges are not shown. Only after changing the values of the badges, they are shown.

Since it is necessary to use either FFImageLoading or Xamarin.Forms.Nuke in any app that's getting slightly bigger and that's using images, compatibility is necessary.

Expected behavior

Plugin.Badge works together with FFImageLoading and Xamarin.Forms.Nuke.

Reproduction steps

  1. Install Plugin.Badge
  2. Install FFImageLoading or Xamarin.Forms.Nuke
  3. Call CachedImageRenderer.InitImageSourceHandler() or Xamarin.Forms.Nuke.FormsHandler.Init()
  4. Try to use Badges

See repro for FFImageloading: https://github.com/acuntex/PluginBadge_Bug See repro for Xamarin.Forms.Nuke: https://github.com/acuntex/NukePluginBadge_Bug

Configuration

Version: 2.3.0

Platform:

  • [x] :iphone: iOS
  • [ ] :robot: Android
  • [ ] :checkered_flag: WPF
  • [ ] :earth_americas: UWP
  • [ ] :apple: MacOS
  • [ ] :tv: tvOS
  • [x] :monkey: Xamarin.Forms

acuntex avatar Oct 28 '20 16:10 acuntex

As for FFImageLoading, don't call CachedImageRenderer.InitImageSourceHandler(); in your AppDeletegate.cs. But keep in mind that you can not use FFimageloading with Xamarin.Forms.Image (any more). In my case I was not using that anyway.

michelmoorlag avatar Sep 01 '22 09:09 michelmoorlag