2017-11-22 2 views
0

다음 코드는 최종 사용자가 알림을 누를 때 SD 장치에서 메시지를 받고 이벤트를 실행하는 데 적합합니다.알림시 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) 

하지만 사용자 개입 없이는이 작업을 수행 할 수 없습니다.

는 이전 버전에는 GX 15에서 지원됩니다

&GXPushNotification.Event.Execution = EventExecution.OnNotificationArrive 

매개 변수가 있었다?

감사합니다, 리오 Arosemena

답변

0

리오,

당신이 사용자의 개입없이 이벤트를 발생 다음 API 사용하려는 경우 :

GeneXus.Common.Notifications.SendEvent을 (..)

Send Notification은 사용자 개입을 필요로하는 문자 메시지 (알림을 열어서)를 말합니다.

텍스트 및 이벤트가 필요한 경우 모두 보내기 (SendEvent & SendNotification)

+0

완벽하게 작동했습니다. Gonzalo에게 감사드립니다. –

관련 문제