Skip to content

Retrieves Firebase Project ID from the provided service credential file#143

Open
xavarius wants to merge 4 commits into
decision-labs:masterfrom
xavarius:retrive_firebase_id_from_credentials_path
Open

Retrieves Firebase Project ID from the provided service credential file#143
xavarius wants to merge 4 commits into
decision-labs:masterfrom
xavarius:retrive_firebase_id_from_credentials_path

Conversation

@xavarius

@xavarius xavarius commented Oct 28, 2025

Copy link
Copy Markdown

This fixes #142
The pull request adds automatic Firebase Project ID handling by retrieving it from the provided configuration/credential file.
Since the service credential file (exported from the Firebase) contains this project ID, the PR removes duplication in the client initialization.

I would suggest releasing new version with this change, possibly major one, since it's a breaking change.

PS
I have not found any confirmed Firebase service credentials json schema, which kinda makes sense to not disclosure it, but we're all working here with assumptions around the API and file schema.

@xavarius

Copy link
Copy Markdown
Author

@sabman @kashif Could I ask you to review the PR and discuss if needed? :)

@xavarius

xavarius commented Nov 4, 2025

Copy link
Copy Markdown
Author

@sabman @kashif Would you be open to including this improvement? Let me know, please. If not, I would consider useing my fork in the project to simplify this bit. :)

@xavarius

Copy link
Copy Markdown
Author

Dear @sabman, I'm fully aware you may need some time to review this. Could you please let me know if you would have opportunity to do it like this month? :)

Thanks a lot!

@sabman

sabman commented May 1, 2026

Copy link
Copy Markdown
Member

@xavarius can you please reference the file schema in the code? Sorry for the delay on this.

@sabman

sabman commented May 1, 2026

Copy link
Copy Markdown
Member

Also maybe we wanna do it as a non-breaking change with a deprecation warning?

@xavarius

xavarius commented May 1, 2026

Copy link
Copy Markdown
Author

@xavarius can you please reference the file schema in the code? Sorry for the delay on this.

No worries. Excuse me. But What do you mean by referencing file schema in the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FCM V1 could get firebase project id from the provided credentials file/io object.

3 participants