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
        }
Exemple #2
0
        public async Task <BatchResponse> SendNotificationAsync(IEnumerable <Message> messages)
        {
            var result = await _firebaseMessaging.SendAllAsync(messages, false);

            return(result);
        }
Exemple #3
0
        public async Task <int> PushNotifications(List <Message> messages)
        {
            var result = await _messaging.SendAllAsync(messages);

            return(result.SuccessCount);
        }