J'ai un panneau Web sur Genexus X Ev2 U7 où j'essaie d'envoyer une notification push à mon développeur Android sur Genexus X Ev3 U5.L'envoi de notifications push permet d'attendre sur un panneau Web
Le code est le suivant:
Début de l'événement
&MessageCharacter = 'Mi Notificacion'
&GpsDeviceToken = 'APx91bFWDR86o4sx7DeP2mmqLaO5RIRp1g_giDFu2grYIpDQxY5Nw3F_AcYERmAkQLjqzVcXtY9tveUYOemUztFzH8DVfeWefIhxmsNMkPHDFjP44cao_ch97PMmianhdpahQtQANPubc70FsKUpFJqrSNZcGVurEQ'
&GpsDeviceType = SmartDeviceType.Android
FinEvénement
événement Entrez
&RemoteNotification = new()
&RemoteNotification.DeviceToken = &GpsDeviceToken
&RemoteNotification.DeviceType = &GpsDeviceType
&RemoteNotification.Message = &MessageCharacter
//&RemoteNotification. .Event.Name = &EventNameCharacter
//Send
&Notifications.OpenSession("EncuestasMoviles")
&Notifications.Add(&remoteNotification)
&Notifications.Send()
FinEvénement
Quand je exécuter l'événement enter, la page Web continue d'attendre.
Est-ce la bonne façon d'envoyer des notifications?
Regards, Rogelio Arosemena