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

iOS badge notification issue #151

Open
2 of 4 tasks
youcefswoo opened this issue May 2, 2024 · 2 comments
Open
2 of 4 tasks

iOS badge notification issue #151

youcefswoo opened this issue May 2, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request evergreen

Comments

@youcefswoo
Copy link

Checklist

  • I have read the contributing guidelines
  • I have determined whether this bug is also reproducible in a vanilla project, such as the example app in this repository.
  • If possible, I've reproduced the issue using the master branch or latest release of this package.
  • This issue hasn't been addressed in an existing issue or pull request

Description

In iOS, when I receive a notification, the badge increments to 1, which is fine for now. However, when I receive other notifications, the badge counter remains at one and does not increment.

Expected behavior

To have the badge counter reflect the number of notifications I have received.

Actual behavior

The badge counter always shows one, regardless of the number of notifications received.

Steps to reproduce

Receive multiple Klaviyo notifications

The Klaviyo React Native SDK version information

0.3.1

Environment Description

"react": "18.2.0","react-native": "0.73.3","@react-native-firebase/messaging": "19.1.0",

@youcefswoo youcefswoo added the bug Something isn't working label May 2, 2024
@ajaysubra ajaysubra self-assigned this May 2, 2024
@ajaysubra
Copy link
Collaborator

Hey @youcefswoo thanks for reaching out. We are aware of this issue from a previous customer and have made some updates to the example app in this PR to address this. Also, you can refer to the iOS readme - tracking open events section for more information on this.

Currently, in our sending systems, we allow our customers to either add a badge or not. When a customer adds a badge, the count is always sent as 1 since our systems don't really know what the count on the app is since that information is never sent to our systems.

We plan to provide more flexibility around the badge count and the ability to increment the value in the future, but that functionality is not currently supported.

The best option for now is the PR linked above - where when a user taps on a notification, you can decrement the count by 1, or when the app is started, you can set it to 0. We do realize that neither of these gives our developers the opportunity to increment the badge count, but at least by implementing this PR, your users will not always see a badge on the app icon. Whenever we have the feature implemented we will get back to you.

@ajaysubra ajaysubra added enhancement New feature or request evergreen and removed bug Something isn't working labels May 2, 2024
@youcefswoo
Copy link
Author

Hey @youcefswoo thanks for reaching out. We are aware of this issue from a previous customer and have made some updates to the example app in this PR to address this. Also, you can refer to the iOS readme - tracking open events section for more information on this.

Currently, in our sending systems, we allow our customers to either add a badge or not. When a customer adds a badge, the count is always sent as 1 since our systems don't really know what the count on the app is since that information is never sent to our systems.

We plan to provide more flexibility around the badge count and the ability to increment the value in the future, but that functionality is not currently supported.

The best option for now is the PR linked above - where when a user taps on a notification, you can decrement the count by 1, or when the app is started, you can set it to 0. We do realize that neither of these gives our developers the opportunity to increment the badge count, but at least by implementing this PR, your users will not always see a badge on the app icon. Whenever we have the feature implemented we will get back to you.

Thanks for your clarification.

@ajaysubra ajaysubra pinned this issue Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request evergreen
Projects
None yet
Development

No branches or pull requests

2 participants