FCM send - 401 Unauthorized even though can query Firestore documents
Im trying to send FCM in my kotlin springboot backend.
I can query/write firestore documents successfully.
But when I try to send fcm, I got below error.
message: "handleException / com.google.api.client.http.HttpResponseException: 401 Unauthorized
POST https://fcm.googleapis.com/v1/projects//messages:send"
The Service Account have Firebase Admin, and Firebase Cloud Messaging Admin roles.
Using below code to trigger
package cloudcode.features.firebase
import...