NativeScript / NativeScript/plugins
[@nativescript/local-notifications] App crash when addOnMessageClearedCallback
Abierto
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 206
- Forks
- 123
- Merge medio
- 2 d 1 h
- PR fusionados (30 d)
- 1
Descripción
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"
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo el fallo que se produce al establecer addOnMessageClearedCallback en Android con NativeScript 7.3.0; después, inspecciona la ruta del callback de notificación eliminada en @nativescript/local-notifications. Se considera terminado cuando eliminar una notificación invoca el callback sin NativeScriptException ni bloqueo de la aplicación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, typescript
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100