NativeScript / NativeScript/plugins

[@nativescript/local-notifications] getScheduledIds() returns ids of notifications that have already been published on Android

未關閉
#343 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
TypeScript
星號
206
分支
123
平均合併
2 天 1 小時
30 天內合併 PR
1

描述

On Android if you schedule a notification and wait to receive the notification, the notification shows as expected. If you call getScheduledIds() after, that notification ID is still returned in the array and the array continues to grow infinitely unless you explicitly call cancel() or cancelAll().

iOS works as you would expect. Once you receive a notification, that ID no longer returns after calling getScheduledIds().

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 getScheduledIds() 的 Android 實作著手,追蹤已送達的通知如何從已排程集合中移除;將該流程與所述的 iOS 行為進行比較。完成標準是:已送達通知的 ID 不會出現在後續的 getScheduledIds() 結果中,且不需要呼叫 cancel() 或 cancelAll()。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, typescript
領域
mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。