Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Fix warning when FCM token cannot be sent
Acho Arnoldd5383489ac11
diff --git a/api/pkg/services/phone_notification_service.go b/api/pkg/services/phone_notification_service.goindex ab0c873e..7907d6d6 100644--- a/api/pkg/services/phone_notification_service.go+++ b/api/pkg/services/phone_notification_service.go@@ -134,7 +134,7 @@ func (service *PhoneNotificationService) Send(ctx context.Context, params *PhoneToken: *phone.FcmToken,})if err != nil {- ctxLogger.Warn(stacktrace.Propagate(err, "cannot send FCM to phone"))+ ctxLogger.Warn(stacktrace.Propagate(err, fmt.Sprintf("cannot send FCM to phone with ID [%s] for user with ID [%s] and message [%s]", phone.ID, phone.UserID, params.MessageID)))msg := fmt.Sprintf("cannot send notification for to your phone [%s]. Reinstall the httpSMS app on your Android phone.", phone.PhoneNumber)return service.handleNotificationFailed(ctx, errors.New(msg), params)}