[@nativescript/local-notifications] App crash when addOnMessageClearedCallback

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

還沒有人認領這個 Issue。

評估

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

研究方向

先在 Android 上使用 NativeScript 7.3.0 設定 addOnMessageClearedCallback 時重現當機,接著檢查 @nativescript/local-notifications 中的通知清除回呼路徑。完成標準是清除通知時能夠呼叫回呼,且不會出現 NativeScriptException 或應用程式當機。

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

描述

The app crashed when setting a callback for the user clearing the notification.

Error: Unable to start receiver com.telerik.localnotifications.NotificationClearedReceiver: com.tns.NativeScriptException: Cannot find object id for instance=com.tns.gen.com.telerik.localnotifications.LocalNotificationsPluginListener@ce7d97
System.err: com.tns.NativeScriptException: Error: Cannot convert object to Ljava/lang/Throwable; at index 0
System.err:     at com.tns.Runtime.passExceptionToJsNative(Native Method)
System.err:     at com.tns.Runtime.passUncaughtExceptionToJs(Runtime.java:84)
System.err:     at com.tns.NativeScriptUncaughtExceptionHandler.uncaughtException(NativeScriptUncaughtExceptionHandler.java:34)
System.err:     at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
System.err:     at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
System.err:     at java.lang.Thread.dispatchUncaughtException(Thread.java:2203)

NativeScript: 7.3.0
Device: Samsung A52 Android 11
@nativescript/local-notifications: "^5.1.0"

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

貢獻指南

開啟貢獻指南

從這裡開始

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

NativeScript/plugins 的其他 Issue

查看 NativeScript/plugins 的全部 Issue

相似的 Issue

更多 TypeScript Issue

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

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