xabre / xamarin-forms-tab-badge

Xamarin Forms bindable Tab badges for iOS, Android, UWP, MacOS and WPF
MIT License
307 stars 75 forks source link

No Badge Display on IOS #81

Closed klementuel closed 4 years ago

klementuel commented 4 years ago

Hi I have a problem to see the badge on the Tabbed Page. For Testing I set the BadgeText Without Binding to 2

<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
             xmlns:plugin="clr-namespace:Plugin.Badge.Abstractions;assembly=Plugin.Badge.Abstractions"
             android:TabbedPage.IsSwipePagingEnabled="False"
             android:TabbedPage.ToolbarPlacement="Bottom"
             mc:Ignorable="d"
             xmlns:local="clr-namespace:SAPCommunityApp.Pages"
             x:Class="SAPCommunityApp.Pages.TbPage"
             NavigationPage.HasNavigationBar="False"
           >

<local:ActivityStreamPage  Title="Activity" IconImageSource="inbox_black_24pt.png"/>

<local:InboxPage Title="Inbox" IconImageSource="notifications_black_24pt.png"
                              plugin:TabBadge.BadgeColor="Red"
                              plugin:TabBadge.BadgePosition="PositionTopRight"
                              plugin:TabBadge.BadgeTextColor="White"
                              plugin:TabBadge.BadgeText="2"/>

    </TabbedPage>

But nothing happend?! Any idea what I´m doing wrong?

I double check your Readme and try some workarounds but I found no solutions. I try it on Ios and Android.

Thanks

klementuel commented 4 years ago

Ok I found out this issue is only during the startup, when I change the badge during the runtime it´s works fine. do you have any idea what´s the problem is?

klementuel commented 4 years ago

Ok We found the problem, we create the TabbedPage during Runtime, thats not running very well... Now we create an instanz from TabbedPage during start and used that...