# DiscourseHub 应用的幻影通知

**URL:** https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132
**Category:** Bug
**Tags:** discourse-hub
**Created:** [2023年十月5日 10:09 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132 "2023-10-05T10:09:07Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2023年十月5日 10:09 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/1 "2023-10-05T10:09:08Z")

</div>

大约一周以来，我的 DiscourseHub 应用中一直显示一个通知（绿色）计数徽章。同样，我的主屏幕上针对该应用的 iOS 更新计数徽章也显示为 1。

 ![IMG_4810](https://global.discourse-cdn.com/meta/original/4X/f/3/d/f3d4d3295bf31a3b7b9679e658f779d4f5137de0.jpeg)

在论坛本身中，我没有任何通知，也没有未读消息。

这让我的强迫症和通知-多巴胺循环变得非常疯狂。有什么建议可以帮我找到根本原因吗？

我尝试重新安装了该应用。这没有帮助。

我还查看了 `https://forum.caption.me/notifications.json` 端点，但那里的所有通知都显示为 `\"read\":true`。

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [2023年十月5日 10:49 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/2 "2023-10-05T10:49:55Z")

</div>

在那里再获取一次通知，然后使用 全部清除。这或许可以清除你的幽灵通知 👻

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2023年十月5日 10:52 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/3 "2023-10-05T10:52:43Z")

</div>

太棒了@Firepup650。我试了一下，起初似乎不起作用。然后我滑动删除了我的论坛（来自 DiscourseHub），并重新添加了它。这时，通知数量为零。问题解决了！非常感谢。

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2023年十月5日 11:24 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/4 "2023-10-05T11:24:12Z")

</div>

我也有同样的问题。在我将消息从一个频道移动到另一个频道后出现的。这是 DiscourseHub 偶尔会遇到的一个问题。它已经消失了一段时间，但我认为它在最近一次应用更新后又回来了。

当然，删除一个实例是一种解决方案。我讨厌它，因为它会打乱论坛的顺序，而我正在依靠肌肉记忆来操作 😏

过一段时间它就会消失，在我的论坛上，如果我没记错的话，需要一周时间来调整我的设置。

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2023年十月5日 11:41 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/5 "2023-10-05T11:41:20Z")

</div>

> [@Jagster](#):
>
> 我讨厌它，因为它破坏了论坛的顺序

可以通过长按和拖动来重新排序论坛列表

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2023年十月6日 07:25 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/6 "2023-10-06T07:25:00Z")

</div>

糟糕！幽灵通知又回来了 😭  
似乎与定时书签提醒相对应 - 不知道这个 bug 是否与该功能有关？

---

<div class="post-metadata">

### Author: ![jeffbyrnes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeffbyrnes/32/121097_2.png) [@jeffbyrnes](https://meta.discourse.org/u/jeffbyrnes)
#### Post date: [2023年十月7日 15:03 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/7 "2023-10-07T15:03:40Z")

</div>

我也有同样的经历，似乎与私信未被视为已读有关。

---

<div class="post-metadata">

### Author: ![Octoberon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/octoberon/32/288382_2.png) [@Octoberon](https://meta.discourse.org/u/Octoberon)
#### Post date: [2023年十月11日 13:07 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/8 "2023-10-11T13:07:13Z")

</div>

我遇到了同样的问题。一周后似乎也没有清除，所以我刚刚从 DiscourseHub 中删除了论坛并重新添加了它。通知已清除。

---

<div class="post-metadata">

### Author: ![spdegabrielle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spdegabrielle/32/190784_2.png) [@spdegabrielle](https://meta.discourse.org/u/spdegabrielle)
#### Post date: [2023年十月16日 11:07 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/9 "2023-10-16T11:07:04Z")

</div>

移动应用程序显示一个未处理的通知，应用内服务器名称右侧有一个绿色菱形数字 1，iOS 应用程序图标上有一个相应的红色通知。

 ![IMG_7178](https://global.discourse-cdn.com/meta/original/4X/9/f/4/9f4e76626bbe8ec1fa947443c968930c9952e4b9.png)

我已通过 Chrome 使用桌面 UI 验证我没有任何未处理的通知。

这似乎是最近几天或几周才开始出现的。

其他人遇到过这种情况吗？

附注：已卸载并重新安装，以防是数据问题。

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [2023年十月16日 11:07 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/10 "2023-10-16T11:07:40Z")

</div>

尝试从应用中移除论坛，然后重新添加。\n\n另外，这个主题也与相同的问题有关：\n[Phantom notification in DiscourseHub app](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132)

---

<div class="post-metadata">

### Author: ![spdegabrielle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spdegabrielle/32/190784_2.png) [@spdegabrielle](https://meta.discourse.org/u/spdegabrielle)
#### Post date: [2023年十月16日 13:40 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/11 "2023-10-16T13:40:58Z")

</div>

啊，谢谢。  
我认为我已经能够重现了：  
移除并重新添加服务器移除了绿色的菱形，但另一条（私密的）聊天消息恢复了它，但阅读相关消息并未清除指示器。  
S.

---

<div class="post-metadata">

### Author: ![spdegabrielle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spdegabrielle/32/190784_2.png) [@spdegabrielle](https://meta.discourse.org/u/spdegabrielle)
#### Post date: [2023年十月16日 13:41 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/12 "2023-10-16T13:41:57Z")

</div>

我认为我已经成功复现了：

[https://meta.discourse.org/t/mobile-app-notification-count/282364/3?u=spdegabrielle](https://meta.discourse.org/t/mobile-app-notification-count/282364/3?u=spdegabrielle)

---

<div class="post-metadata">

### Author: ![gingerbeardman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gingerbeardman/32/540824_2.png) [@gingerbeardman](https://meta.discourse.org/u/gingerbeardman)
#### Post date: [2023年十月19日 13:54 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/13 "2023-10-19T13:54:50Z")

</div>

1. 查看有一个绿色的审核通知徽章
2. 打开论坛，发现它已经被另一位版主处理了
3. 通知徽章不会消失

我唯一能让它消失的方法是完全删除论坛并将其重新添加到 iOS 应用中。

所以这似乎是一个应用缓存问题？

iOS 应用：1.8.11  
Discourse 论坛：3.1.2 (ef3f415439)

 ![IMG_4716](https://global.discourse-cdn.com/meta/original/4X/3/c/8/3c88b3b431773c08c9fb7cc92893a870608ea5cc.png)  
 ![IMG_4717](https://global.discourse-cdn.com/meta/original/4X/f/f/0/ff056a20e7659515f9e4bb722807d7b28a6fccc9.jpeg)

---

<div class="post-metadata">

### Author: ![spdegabrielle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spdegabrielle/32/190784_2.png) [@spdegabrielle](https://meta.discourse.org/u/spdegabrielle)
#### Post date: [2023年十月19日 18:41 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/14 "2023-10-19T18:41:30Z")

</div>

我已经成功复现了问题，但如何提交 bug 报告？

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月19日 18:58 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/15 "2023-10-19T18:58:45Z")

</div>

让我们把这两个话题合并一下，然后发到 #Contribute > Bug 分类里，看看能不能找到人来仔细看看。 👀

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月19日 19:01 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/17 "2023-10-19T19:01:32Z")

</div>

这是在使用 DiscourseHub 吗？

如果是的话，我认为我们可以将此报告合并到另外几个关于类似问题的报告中：

> [@Phantom notification in DiscourseHub app](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132):
>
> For a week or so, I’ve had a single notification (green) count badge shown in my DiscourseHub app. Similarly, an iOS update count badge of 1 is shown on my homescreen against the app In the forum itself I have no notifications, and no unread messages. This is driving my OCD and notification-dopamine cycles really crazy. Any suggestions on how I can find the root cause? I’ve tried reinstalling the app. That didn’t help. Also looked at the https://forum.caption.me/notifications.js…

我认为红色是审核队列通知，绿色是普通通知，如果这也有关系的话。

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2023年十月19日 19:02 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/18 "2023-10-19T19:02:14Z")

</div>

感谢您提供详细的报告！

> [@spdegabrielle](#):
>
> 但另一条（私密的）聊天消息恢复了它，但阅读相关消息并未清除指示器

您是否还记得您是在 _哪里_ 阅读该聊天消息的？是在 DiscourseHub 应用中吗？

---

<div class="post-metadata">

### Author: ![gingerbeardman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gingerbeardman/32/540824_2.png) [@gingerbeardman](https://meta.discourse.org/u/gingerbeardman)
#### Post date: [2023年十月19日 19:20 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/20 "2023-10-19T19:20:06Z")

</div>

是的，iOS 应用 DiscourseHub。

编辑：我把颜色弄混了。

用红色的那个，你必须找到未读项，这简直是大海捞针。但这是可能的。

用绿色的那个，移除并重新添加论坛就足以清除它。

另外，请看我三年前关于徽章消失的问题。[iOS app: viewing first forum erases notifications of second - #26 by gingerbeardman](https://meta.discourse.org/t/ios-app-viewing-first-forum-erases-notifications-of-second/154329/26)

我认为应用中的徽章系统真的有问题。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月19日 19:23 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/21 "2023-10-19T19:23:57Z")

</div>

我已经合并了。👍 我认为我可能已经将“合并并保留时间顺序”推向了这个主题的极限，但我认为它仍然有意义。🤞

---

<div class="post-metadata">

### Author: ![spdegabrielle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spdegabrielle/32/190784_2.png) [@spdegabrielle](https://meta.discourse.org/u/spdegabrielle)
#### Post date: [2023年十月19日 19:26 UTC](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132/23 "2023-10-19T19:26:55Z")

</div>

全部在移动应用程序中！

[下一頁](https://meta.discourse.org/t/phantom-notification-in-discoursehub-app/281132.md?page=2)
