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

Set badge #13425

Closed
StanleyCocos opened this issue Sep 29, 2024 · 4 comments
Closed

Set badge #13425

StanleyCocos opened this issue Sep 29, 2024 · 4 comments
Labels
Needs Attention This issue needs maintainer attention. resolution: invalid This doesn't seem right and might not belong here. type: enhancement New feature or request

Comments

@StanleyCocos
Copy link
Contributor

I don't seem to see how to set the desktop icon. Would you consider adding this feature?

@StanleyCocos StanleyCocos added Needs Attention This issue needs maintainer attention. type: enhancement New feature or request labels Sep 29, 2024
@SelaseKay
Copy link
Contributor

Hi @StanleyCocos , could you please provide more details about your feature request? I'm not entirely clear on what you mean. Thank you!

@SelaseKay SelaseKay added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Sep 30, 2024
@StanleyCocos
Copy link
Contributor Author

Hi @SelaseKay, For example, when iOS pushes

{
 "aps" : {
    "alert" : {
       "body" : "message book",            
     },
    "badge" : 5, 
  },
}

At this time, the picture on the desktop will display the corner mark 5. When I click into my application, I need to set the corresponding read data and modified 5 corner mark data. For example:

UIApplication.shared.applicationIconBadgeNumber = 2

Hope it can be added

FirebaseMessaging.setBadgeNumber(2);

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Sep 30, 2024
@SelaseKay
Copy link
Contributor

Hi @StanleyCocos, Thank you for your suggestion. However, modifying the application badge number directly in the way you described falls outside the scope of the FlutterFire package. There a other packages dedicated for such functionalities(eg. flutter_app_badger ).

@SelaseKay SelaseKay added the resolution: invalid This doesn't seem right and might not belong here. label Sep 30, 2024
@StanleyCocos
Copy link
Contributor Author

OK thank you.
However, I still think that setting the corner mark is a very small function, and it is part of the push function. No need to reintroduce a framework. And there is currently no mature and well-maintained framework on the market.

@firebase firebase locked and limited conversation to collaborators Oct 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Attention This issue needs maintainer attention. resolution: invalid This doesn't seem right and might not belong here. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants