public async Task SendNotification(string token, string title, string body) { var result = await firebaseMessaging.SendAllAsync(new List <Message> { CreateNotification(title, body, token) }); //do something with result }
public async Task <BatchResponse> SendNotificationAsync(IEnumerable <Message> messages) { var result = await _firebaseMessaging.SendAllAsync(messages, false); return(result); }
public async Task <int> PushNotifications(List <Message> messages) { var result = await _messaging.SendAllAsync(messages); return(result.SuccessCount); }