Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update badge count while app is open? #81

Open
Srusti-Thakkar opened this issue Jun 11, 2018 · 1 comment
Open

How to update badge count while app is open? #81

Srusti-Thakkar opened this issue Jun 11, 2018 · 1 comment

Comments

@Srusti-Thakkar
Copy link

Srusti-Thakkar commented Jun 11, 2018

Hi. I am using your plugin and it works fine. My problem is I want to update badge count When notification is received while app is in running mode(i. e. open). I am using Setting Plugin for Xamarin and store count in that. On app initialize it display counts properly. But when my app is open I am changing value of Setting and immediately change the value pf badge. How's that can be possible?

Main thing is I want to increment and decrements badge count on button click event. How's that possible?

@gioggio79
Copy link

Try this:
On App.cs set the TabbedPage
-> public static CustomTabbedPage TabbedPage;

and you can use this for update:
CustomTabbedPageExtension.SetBadgeCount(App.TabbedPage.Children[3], badgeNum);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants