[GH-ISSUE #1065] Project ID error. The sisstem not recognize my firebase-key-file #746

Closed
opened 2026-05-07 00:27:07 +02:00 by BreizhHardware · 2 comments

Originally created by @redenfire on GitHub (Mar 23, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1065

Hi everyone.
I'm on a linux Linux Mint 21.1 x86_64, with Docker version 26.0.0, build 2ae903e. I've installed a self-hosted version on ntfy with auth enabled.

I have a problem with my firebase-key-file. I've generated it with FCM, I download the file and I've mount the /etc/ntfy folder with docker.
The folder is correctly mount.

I tried to use the ENV var NTFY_FIREBASE_KEY_FILE or a server.yml for use my FCM json but the logs output is always this:

project ID is required to access Firebase Cloud Messaging client

This is the content of my file, named vvfy-XXXX.json, where XXX is the rest of project id inside the file:

{
  "project_info": {
    "project_number": "AAAAAAA",
    "project_id": "vvfy-XXXX",
    "storage_bucket": "vvfy-XXXX.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "APP_ID_VALUE",
        "android_client_info": {
          "package_name": "com.vvfy"
        }
      },
      "oauth_client": [],
      "api_key": [
        {
          "current_key": ""
        }
      ],
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": []
        }
      }
    }
  ],
  "configuration_version": "1"
}

Can anyone help my?

Originally created by @redenfire on GitHub (Mar 23, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1065 Hi everyone. I'm on a linux Linux Mint 21.1 x86_64, with Docker version 26.0.0, build 2ae903e. I've installed a self-hosted version on ntfy with auth enabled. I have a problem with my firebase-key-file. I've generated it with FCM, I download the file and I've mount the /etc/ntfy folder with docker. The folder is correctly mount. I tried to use the ENV var NTFY_FIREBASE_KEY_FILE or a server.yml for use my FCM json but the logs output is always this: > project ID is required to access Firebase Cloud Messaging client This is the content of my file, named vvfy-XXXX.json, where XXX is the rest of project id inside the file: ``` { "project_info": { "project_number": "AAAAAAA", "project_id": "vvfy-XXXX", "storage_bucket": "vvfy-XXXX.appspot.com" }, "client": [ { "client_info": { "mobilesdk_app_id": "APP_ID_VALUE", "android_client_info": { "package_name": "com.vvfy" } }, "oauth_client": [], "api_key": [ { "current_key": "" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [] } } } ], "configuration_version": "1" } ``` Can anyone help my?
Author
Owner

@redenfire commented on GitHub (Mar 23, 2024):

Resolved!
The file was wrong.

Under Firebase site, I created a new private key into Project settings > Service accounts

The downloaded file need to be linked into container under NTFY_FIREBASE_KEY_FILE env, or in server.yml

After this i downloaded again the google-service.json. This file is necessary for build the apk.

I think this can be useful from someone else, because I didnt undestend the ntfy guide for FCM.

<!-- gh-comment-id:2016571862 --> @redenfire commented on GitHub (Mar 23, 2024): Resolved! The file was wrong. Under Firebase site, I created a new private key into **Project settings > Service accounts** The downloaded file need to be linked into container under NTFY_FIREBASE_KEY_FILE env, or in server.yml After this i downloaded again the google-service.json. This file is necessary for build the apk. I think this can be useful from someone else, because I didnt undestend the ntfy guide for FCM.
Author
Owner

@wunter8 commented on GitHub (Mar 23, 2024):

Thank you for sharing how you got it working!

<!-- gh-comment-id:2016597741 --> @wunter8 commented on GitHub (Mar 23, 2024): Thank you for sharing how you got it working!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#746
No description provided.