Notifications 当我点击nativescript本地通知时,它会启动应用程序,但addOnMessageReceivedCallback不起作用

Notifications 当我点击nativescript本地通知时,它会启动应用程序,但addOnMessageReceivedCallback不起作用,notifications,nativescript,localnotification,nativescript-vue,Notifications,Nativescript,Localnotification,Nativescript Vue,我有这个 `LocalNotifications.addOnMessageReceivedCallback( function (notification) { console.log("ID: " + notification.id); console.log("Title

我有这个

                            `LocalNotifications.addOnMessageReceivedCallback(
                            function (notification) {
                            console.log("ID: " + notification.id);
                            console.log("Title: " + notification.title);
                           console.log("Body: " + notification.body);
                            }
                             ).then(
                                function() {
                                  console.log("Listener added");
                                     }
                                     )

当我点击本地通知时,我没有得到任何输出,它会启动应用程序,但LocalNotifications.addOnMessageReceivedCallback似乎根本不起作用。问题可能是什么?我该如何解决它?

是iOS还是Android?您正在使用哪个版本的操作系统进行测试?@Manoj它位于iOS 13.1.3和真实设备上。我完全不知道它为什么不起作用。。我在main.js中向您展示了几乎最高级别的代码,但当我点击通知时,不会触发addOnMessageReceivedCallback