public bool NotificationSendBroadcast([FromBody] ExPostNotofication data)
        {
            Logging.Log.LogInfo($"NotificationSendBroadcast/{data.CampaignName}/{data.Body}/{data.Title}");
            var service = new MobileCenterNotification(Constants.MobileCenterNotification);

            Task.Run(async() => await service.SendBroadcast(data.CampaignName, data.Body, data.Title, data.Data));
            return(true);
        }
Beispiel #2
0
 /// <summary>
 ///     Push Notifizierung senden an alle Apps aller User senden
 /// </summary>
 /// <param name="data">Daten</param>
 /// <returns>Id von Mobile Center oder String.Empty wenn es nicht funktioniert hat (IOS, Android, UWP)</returns>
 public async Task <ResultData <bool?> > NotificationSendBroadcast(ExPostNotofication data)
 {
     return(await _wap.Post <bool?>("NotificationSendBroadcast", data));
 }