Wywala błąd podczas wywołania /debug/send-test-notification
Przypuszczam że serwer nie sprawdza czy token (jeżeli juz jest) jest poprawny.
W logach możemy znaleźć:
An unhandled exception has occurred while executing the request.
FirebaseAdmin.Messaging.FirebaseMessagingException: The registration token is not a valid FCM registration token
at FirebaseAdmin.Util.ErrorHandlingHttpClient1.SendAndReadAsync(HttpRequestMessage request, CancellationToken cancellationToken) at FirebaseAdmin.Util.ErrorHandlingHttpClient1.SendAndDeserializeAsync[TResult](HttpRequestMessage request, CancellationToken cancellationToken)
at FirebaseAdmin.Messaging.FirebaseMessagingClient.SendAsync(Message message, Boolean dryRun, CancellationToken cancellationToken)
at FirebaseAdmin.Messaging.FirebaseMessaging.SendAsync(Message message, Boolean dryRun, CancellationToken cancellationToken)
at FirebaseAdmin.Messaging.FirebaseMessaging.SendAsync(Message message, Boolean dryRun)
at FirebaseAdmin.Messaging.FirebaseMessaging.SendAsync(Message message)
at Reservant.Api.Push.FirebaseService.SendNotification(Notification notification) in /src/Api/Push/FirebaseService.cs:line 42
at Reservant.Api.Services.NotificationService.NotifyUser(Guid targetUserId, NotificationDetails details, String photoFileName) in /src/Api/Services/NotificationService.cs:line 159
at Reservant.Api.Services.NotificationService.NotifyNewFriendRequest(Guid senderId, Guid receiverId) in /src/Api/Services/NotificationService.cs:line 198
at Reservant.Api.Controllers.DebugController.SendTestNotification(NotificationService service) in /src/Api/Controllers/DebugController.cs:line 49
at lambda_method4496(Closure, Object)
Opisz błąd
Wywala błąd podczas wywołania
/debug/send-test-notification
Przypuszczam że serwer nie sprawdza czy token (jeżeli juz jest) jest poprawny.W logach możemy znaleźć:
Screen: