以下代码适用于在 SD 设备上接收消息并在最终用户点击通知时执行事件。
&ApplicationIdCharacter = 'xxxxx-xxxx-xxx-xxxxxx'
&TheNotification.Text.DefaultText = "Notification Provider API"
&TheNotification.Actions.DefaultAction.Event.Name = "Insert_Msg"
&TheNotification.Appearance.Icon.Small = !"GX15IconKB"
&TheNotificationDelivery.Expiration = 3000
&TheNotificationDelivery.Priority = PushNotificationPriority.Normal
&TheNotificationConfiguration.ApplicationId = &ApplicationIdCharacter
&DeviceToken = 'xxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx'
GeneXus.Common.Notifications.SendNotification(&TheNotificationConfiguration,&DeviceToken,&TheNotification,&TheNotificationDelivery,&OutMessages,&IsSuccessful)
但是我找不到任何没有用户干预的例子。
在以前的版本中,有一个参数
&GXPushNotification.Event.Execution = EventExecution.OnNotificationArrive
GX 15 支持吗?
谢谢,罗赫利奥·阿罗塞纳