question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Proposal] AppIcon Badge

See original GitHub issue

Feature name

AppIconBadge

Link to discussion

https://github.com/CommunityToolkit/Maui/discussions/734

Progress tracker

  • Android Implementation
  • iOS Implementation
  • MacCatalyst Implementation
  • Windows Implementation
  • Tizen Implementation
  • Unit Tests
  • Samples
  • Documentation

Summary

Screenshot 2022-11-07 at 13 46 05

Notify the user about some action in the application.

Step by step with output screenshots at https://vladislavantonyuk.azurewebsites.net/articles/AppIcon-Badge-with-.NET-MAUI

Motivation

Better user experience and app interaction with OS.

https://developer.apple.com/documentation/uikit/uiapplication/1622918-applicationiconbadgenumber https://github.com/leolin310148/ShortcutBadger</div>

Detailed Design

public interface INotificationCounter
{
	Task<bool> RequestPermission();
	void SetNotificationCount(int count);
}

Usage Syntax

var isGranted = await NotificationCounter.Default.RequestPermission();
if (isGranted)
    NotificationCounter.Default.SetNotificationCount(count);

Drawbacks

Android implementation requires the support of many launchers. As part of this feature, I suggest creating a base class and implementation for some main providers, because we can’t support all launchers

Alternatives

No response

Unresolved Questions

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
VladislavAntonyukcommented, Jan 13, 2023

@KSemenenko we are focusing on bug fixes for the next month or two. however I am going to implement it as a next feature PR.

2reactions
brminnickcommented, Dec 13, 2022

Thanks @VladislavAntonyuk!

Promoting to https://github.com/CommunityToolkit/Maui/labels/approved as we voted to approve it in the December Standup.

Technically, we should’ve opened the Proposal first before voting to approve said Proposal, but we’ll let this one slide.

Submitting a Proposal doesn’t require a vote from the core maintainers. It should start as a Discussion, and then once the Discussion is deemed feature-complete a Proposal can be opened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

badge app icon switch missing on my mail
The badge app icon is gone on my mail app and when I go into the settings for mail app under notifications there...
Read more >
obytes/app-icon-badge: 🧩 Expo plugin/library to ...
Easy to use as an Expo plugin or a simple library. Supports universal icons and adaptive icons. Supports multiple badges. Fully customizable; you ......
Read more >
Modify a notification badge
Users can touch & hold the app icon to reveal the notifications, along with any app shortcuts, as shown in figure 1. These...
Read more >
How to Turn On/Off App icon badges for individual Apps
Want to know How to Turn On/Off App icon badges for individual Apps on Samsung smartphone? This guide will show you how to...
Read more >
Essential Trust Badges & Icons
Boost Shopify sales with trust badges, feature icons and baners · Use cases: Display trust badges, sale promotions, upsells · Highly customizable feature...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found