appleboy / appleboy/gorush

'Counts' value returned is wrong for IOS

Open
#814 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
8.8k
Forks
887
PR merge metrics
No merged PRs in 30d

Description

Hi, for a IOS notification the counts value returned is always double what it should be, i.e. for:
`{"notifications":[{"tokens":["devicetokenhere"],"platform":1,"message":"xyz","title":"abc","topic":"com.xyz.app"}]}`
the response was:
`{"counts":2,"logs":[],"success":"ok"}`

**Steps to Reproduce:**
1. Configure GoRush with the necessary iOS settings (using a p8 key for APNs).
2. Send a push notification to a single iOS device, including the topic field in the payload as shown above.
3. Observe that the counts value in the response is 2 instead of 1.

Additional Information:

- Using p8 key authentication.
- Removing the topic field from the payload results in a MissingTopic error from APNs.


Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in GoRush with the provided single-device iOS payload, p8 authentication, and topic field, then trace how the notification response calculates counts. Done means the response reports counts as 1 for one successful iOS notification while retaining the topic requirement and avoiding MissingTopic errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, ios
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.