Using NotifyRecommendationReceived doesn't prevent duplication
- Dominant language
- JavaScript
- Stars
- 14
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I initialized the wisdom and used some APIs like GetContact and GetRecommendations and things go well. I can get recommendations and I call NotifyRecommendationReceived with the recommendations IDs to avoid duplicated recommendations but I still get the same recommendations again and again with different recommendations IDs each time.
I call getRecommendations and NotifyRecommendationsReceived from inside a setInterval callback in order to constantly get recommendations. I'm not sure if this is the reason or not but I have to use setInterval for constantly getting the recommendations during a call.
Contributor guide
Research direction
Start by reproducing the repeated recommendations with GetRecommendations and NotifyRecommendationReceived inside the reported setInterval callback. Compare the recommendation IDs and notification timing across calls, and determine whether the observed behavior is an SDK defect or an interval/API usage constraint; done means the duplication behavior and expected notification semantics are verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100