-
Notifications
You must be signed in to change notification settings - Fork 18
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
App icon notification badge does not appear on Iphones, but works on Android #1571
Comments
Hi @Torkilws - Thanks for submitting the issue. In iOS, app icon badges (notification badges) don't automatically appear on the app icons. Its needs additional code settings to explicitly set the badge count in the app. |
@hariprasadms Ok thanks for confirming this issue. It this something that will be fixed in a flutterflow update, or do I have to add this code manually myself? |
Hi @Torkilws - I checked this with dev team and they confirmed that this is currently not readily available in FlutterFlow for iOS devices. It can be achieved in two ways,
I have marked this issue as enhancement/feature request. I would suggest submit a feature requests through the in-app feature request tool. You can find it in the “Help” menu inside of the FlutterFlow. This will help us keep to track of and prioritise feature requests. I hope this can help you. |
Thank you for the suggestions @hariprasadms. As of my understanding, using the two methods can not be done using custom actions/functions/main.dart. So I want to avoid it if possible. In my opinion, this functionality should already be in place so it works equally for both Android and IOS, not just Android. Integrated with the current (very good) FCM Push notification system. A high priority feature if you ask me. ⬆️ ❓ Is there a place to check if/when this feature is being worked on? I guess I have to try to create a workaround if this will take many weeks/months to implement. A relevant post from over 1 year ago: |
Hi @Torkilws. I agree that this is something we should be working on. I will add it to our roadmap. Closing this issue for now as it is more of a feature request. |
I have posted this feature request in the Flutterflow community wishlist: |
I'm waiting for this feature too |
I also need this feature to be implemented asap, please! |
As this is an essential feature and we have no idea if the FF team will implement this soon or in a year or 2, we just have to keep pestering about it I guess. It would be amazing with a rough time estimate of when it will be implemented. In my case, my (communication) app will not be fully complete without it. I understand it could be built if the code was downloaded and the functionality was built manually. But this kind of destroys the purpose of FF. |
Looking at the code in flutter_app_badger and assuming it works OK (I haven't tried), I think it shouldn't be so difficult to implement it. Hope the folks at FF put it high on the requests list as this is really a must. |
I super agree, this is really essential and should been implemented in day one, I don't know why this is not done yet. |
What a shame 🙁 |
Email of features update of FF |
Hi all. I have bumped this feature request to the priority column. Please be patient while we review and implement this feature. Thank you for your understanding. |
Upvote |
This is too basic as iOS feature to be ignored. |
This issue has been fixed and you should see it in the release next week |
Hey all! We just pushed a product update which includes the ability to add badges to your app icon. You can find documentation on how to use the new actions here: https://pub.dev/packages/awesome_notifications **Important Note:**For Android, badges automatically appear on app icons with push notifications. However, due to this Firebase issue, badges do not automatically appear on iOS app icons at the moment. We'll monitor the situation for a future fix that would allow for automatic badges for IOS. |
@leighajarett is the update out? |
Hi @leighajarett, @whobick, and the FF team, Thanks for your work on the new iOS badge feature. I noticed that the issue was closed, but I wanted to raise a concern that it might not fully address the needs most of us are looking for. The key functionality we're aiming for is for the badge count to increment on the recipient’s device when a push notification is triggered. Having the authenticated user's badge update only after a foreground action is taken on the device doesn't seem as beneficial. I understand there might be issues with Firebase, but keeping this issue open could be very important. I believe many others share this viewpoint and would appreciate continued efforts to refine this feature. |
@bdonovan858 so the badge functionality is out now? |
@Torkilws not specifically what you're looking for, but they've added an action that enables you to update your App Badge Count. This doesn't increment the badge for the recipient user on a push notification. |
then what is this for? |
I just checked this needs to be added manually because firebase has this issue firebase/flutterfire#9563 and it's blocking that to be automatically Then we need to figure out how use it manually. |
Oh my god really. The whole point was that the badge appears when the user receives a push notification. Doesn't even need to be a number, just a red dot on the icon.. When would you even want to manually update the counter 🤔 |
it's still useless because there is no action that would detect the background notification of the chat messages. This badge update in form of action which mean the end user needs to tap on something in the app in oder to trigger the action then that defeats the purpose of having the badge updated. We want the badge to be updated is because we want the user to tap the app when there is a badge but if this needs the user to tap the app first in order to update the badge defeats the purpose and it's a bit of nonsense. |
@ibm777p2 exactly. We just want it to be the same as on android, where it is working correctly. @leighajarett this issue is not resolved. |
@leighajarett I see your firebase department not able to collaborate with your department at the moment in oder to get the ios version working like android because the post of automated badge feature for ios is blocked due to this issue mentioned on the website firebase/flutterfire#9563. Your both department should prioritize the issues and come up with a timeline when your teams can get this done? Please consult with firebase, collaborate, prioritize and get this done. |
@ibm777p2 have you found any solution? |
There are developers that manually add code in x-code as a work around solution, the only downside on that is that need to be added every time you publish or test on your device. Not the ideal solution at all. @leighajarett is there a time line to get this solved firebase/flutterfire#9563. and continue building the actual solution? |
@ibm777p2 The firebase/flutterfire#9563 issue has been closed for a long time. Do you know if there is another issue created for this, to track updates and such? You would think all flutter users that use firebase notifications would want this fixed. |
@leighajarett the issue that FF mentioned is closed long time ago, will FF continue to develop the badge to be displayed automatically when there is a notification, the way it's now defeat the purpose, the user need to press something in order to execute an action for the badge to show. Is there a plan to fix this? |
once you want to clear the badge count you use the action of update app badge count for ios to 0 in flutterflow, correct? @bdonovan858 |
Yes, that's correct @ibm777p2 |
I think your solution works, it's just that changing the cloud function will add the badge for android and ios, then the action block will only clean up the ios device, right? @bdonovan858 |
@bdonovan858 Thank you for coming up with a solution that doesn't involve changing ios code. I will try this, but have a couple of observations:
|
I have now changed, deployed and tested this fix. Changing the following functions:
I received feedback from my friend with iphone, and can confirm that it worked! |
@Torkilws did you just put badge: 1 like the image below on these cloud functions and everything work for android and ios? sendPushNotificationsTrigger |
@ibm777p2 that is correct :) |
Finally made work too. Thanks |
I think I still need to use the action block to clean it, the red badge doesn't go away by looking at the message. |
@ibm777p2 I see now that it might have worked "out of the box" for me because I already had this custom action added to
Using |
Super crazy the community actually solved this and the developers of flutterflow did not contributed much for our success. |
Has your issue been reported?
Current Behavior
I have set up notification for my app. Notification popup-banners works on both Iphone and Android phones.
But the app notification badge (the dot with a number) over the app icon is only present on Android, not iphone.
Expected Behavior
App icon notification badge is present on both Android and Iphones after a user has received a notification and not opened the app.
Steps to Reproduce
This one is not so easily reproduceable.
The code needs to be deployed on a Android device or emulator. And for iphone it can only be tested on a real device (as far as I know).
Firebase integration and push notifications also needs to be set up.
Reproducible from Blank
Bug Report Code (Required)
ITESlMmA5c9goblH0LnqcMdqhQIgQ0QnU7gnlO1ucx4gJZCsP6QQPs7sV0NKTubmeH9fPmKjmjoz3NLUvuLlCe1dJUuaQaJg0JVPWw3hRkeXRLKXEc2oSnJAJ+xRfUye36azpxYkA7ZfLWQt62GHNq3qNleeY8aSfxBlZ7vfcPo=
Context
Notifications are sent to users that are invited to events in my app. If an Iphone user miss the notification popup accidentally removes it, they can't see that my app has a notification because of the missing app badge.
Visual documentation
Using sample images from the web to demonstrate the issue.
Android:
Android notification popup OK:
![image](https://private-user-images.githubusercontent.com/15776477/271955777-a3421aa3-733c-46f5-84b6-03bb3e67080d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNTAzMDEsIm5iZiI6MTcyMjE1MDAwMSwicGF0aCI6Ii8xNTc3NjQ3Ny8yNzE5NTU3NzctYTM0MjFhYTMtNzMzYy00NmY1LTg0YjYtMDNiYjNlNjcwODBkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDA3MDAwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjNWM4ZjI0NTJkZmUzYjM1ZGNmOThjNGY3NDkyNzcxZjZiMWFlMzQ5NjBlMTZhNTYyMjhmMTE5ZWYyYzQ4YWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ukopWAZMmfZ6B5DQC6Zt6lxb5X4xIdOXBwtvz2azvX4)
Android notification app icon badge OK:
![image](https://private-user-images.githubusercontent.com/15776477/271955939-b8573734-4c22-4d55-885b-a523bac137b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNTAzMDEsIm5iZiI6MTcyMjE1MDAwMSwicGF0aCI6Ii8xNTc3NjQ3Ny8yNzE5NTU5MzktYjg1NzM3MzQtNGMyMi00ZDU1LTg4NWItYTUyM2JhYzEzN2IzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDA3MDAwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzOWY4NGIwNGE3NDczZDQxN2RiN2Q2NjlkZWE5NDU5ODM3NjM4NmJiMjRjOTk2YjM0YWVlZTFiOGViZjZiN2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.af6hmglIBnaYtWaXWVXMzgd9ebsQRX3mpxn7q3j3DgA)
Iphone:
Iphone notification popup OK:
![image](https://private-user-images.githubusercontent.com/15776477/271956083-c922d054-ea90-40e5-8874-0eea4670058c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNTAzMDEsIm5iZiI6MTcyMjE1MDAwMSwicGF0aCI6Ii8xNTc3NjQ3Ny8yNzE5NTYwODMtYzkyMmQwNTQtZWE5MC00MGU1LTg4NzQtMGVlYTQ2NzAwNThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDA3MDAwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViNWI0YTE1MGM0YzZiODVkN2NlM2NlZWZiZGEyZDgwMmY0MjJkYmE2YjA5ZTQ1MWRiZjI0MmZkZWFmODRmNWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tAts9uYMTpBOCAR5B6haF3ZUSmrOWyQGT0hN5ze-8zk)
Iphone notification app icon badge MISSING:
![image](https://private-user-images.githubusercontent.com/15776477/271956211-9bf61ebf-9d46-409b-8940-3ab13d0f4cbc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNTAzMDEsIm5iZiI6MTcyMjE1MDAwMSwicGF0aCI6Ii8xNTc3NjQ3Ny8yNzE5NTYyMTEtOWJmNjFlYmYtOWQ0Ni00MDliLTg5NDAtM2FiMTNkMGY0Y2JjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDA3MDAwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3MDVjZjA1MDg3YjI2MTdiM2RlMWJiYzFmNDJkZDc1MWQwNWNmMzU0ODQ1NWYyNWRhNTNjODk4NDg4N2UzZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c7scO9sWClzjJiRzp4BnUvLABFzuFk1RDqRZcJiER-8)
Additional Info
Environment
The text was updated successfully, but these errors were encountered: