|
|
@ -12,9 +12,8 @@ namespace BCS.BMC.FirebaseCloudMessaging |
|
|
|
{ |
|
|
|
public class FirebaseNotificationAppService : IFirebaseNotificationAppService |
|
|
|
{ |
|
|
|
private readonly ILogger _logger; |
|
|
|
|
|
|
|
public FirebaseNotificationAppService(ILogger logger) |
|
|
|
public FirebaseNotificationAppService() |
|
|
|
{ |
|
|
|
if (FirebaseApp.DefaultInstance is null) |
|
|
|
{ |
|
|
@ -23,7 +22,6 @@ namespace BCS.BMC.FirebaseCloudMessaging |
|
|
|
Credential = GoogleCredential.FromFile("firechat-57601-firebase-adminsdk-anscp-e04366c4d4.json") |
|
|
|
}); |
|
|
|
} |
|
|
|
_logger = logger; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -47,7 +45,7 @@ namespace BCS.BMC.FirebaseCloudMessaging |
|
|
|
} |
|
|
|
public async Task GetNotification(NotificationModel notification) |
|
|
|
{ |
|
|
|
_logger.LogInformation("Bwac Notifications" + notification); |
|
|
|
var data = notification; |
|
|
|
} |
|
|
|
} |
|
|
|
} |