Compare commits
	
		
			2 Commits
		
	
	
		
			a78e92a23a
			...
			fb2f138925
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| fb2f138925 | |||
| 9a96cf68bb | 
@@ -184,8 +184,8 @@ public class NotificationService(
 | 
			
		||||
        {
 | 
			
		||||
            int platformCode = value.Key switch
 | 
			
		||||
            {
 | 
			
		||||
                NotificationPushProvider.Google => 1,
 | 
			
		||||
                NotificationPushProvider.Apple => 2,
 | 
			
		||||
                NotificationPushProvider.Apple => 1,
 | 
			
		||||
                NotificationPushProvider.Google => 2,
 | 
			
		||||
                _ => throw new InvalidOperationException($"Unknown push provider: {value.Key}")
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
@@ -248,9 +248,12 @@ public class NotificationService(
 | 
			
		||||
    private async Task _PushNotification(Notification notification,
 | 
			
		||||
        IEnumerable<NotificationPushSubscription> subscriptions)
 | 
			
		||||
    {
 | 
			
		||||
        var subList = subscriptions.ToList();
 | 
			
		||||
        if (subList.Count == 0) return;
 | 
			
		||||
        
 | 
			
		||||
        var requestDict = new Dictionary<string, object>
 | 
			
		||||
        {
 | 
			
		||||
            ["notifications"] = _BuildNotificationPayload(notification, subscriptions)
 | 
			
		||||
            ["notifications"] = _BuildNotificationPayload(notification, subList)
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
        var client = httpFactory.CreateClient();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user