appcelerator - 交互式通知

appcelerator - Interactive Notifications

我将两个不同的事件用于通知推送,第一个是 usernotificationsettings,第二个是当我将类别放入有效负载时的 remotenotificationaction。问题是当我使用交互式通知时,事件 remotenotificationaction 没有响应,只有 usernotificationsettings。

第一个事件

Ti.App.iOS.addEventListener("usernotificationsettings", registerForIOS8Push);

交互式通知的第二个事件

Ti.App.iOS.addEventListener('remotenotificationaction', remotenotificationaction);

这两个事件非常不同。第一个将在 registerUserNotificationSettings is done. The second one will be fired when the user selects an action from an interactive notification.

时触发