Search code examples
firebasefirebase-cloud-messaging

Is it possible to use basic authentication instead of oauth in FCM


I am working in Spring-boot and I wanted to know if it is possible to authenticate the firebase cloud messaging by using basic auth instead of oauth

I want to use basic authentication with no tokens or anything like that


Solution

  • No, it is not possible. You must follow the instructions in the documentation.

    The FCM HTTP v1 API authorizes requests with a short-lived OAuth 2.0 access token.