Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Choosing Whether to Enable Retries in Firebase App Options

Open
#1,075 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
firebase, java
Domain
api, backend

Research direction

Start by tracing ApiClientUtils and the shown newAuthorizedRequestFactory method through FirebaseApp initialization, focusing on where RetryConfig is fixed or restricted. Determine the supported way to enable or disable retries without changing unrelated retry behavior, and verify that both configured modes work for FCM requests.

Written by the indexing model from the issue text.

Description

needs-triage

Hello,
I have learned that FCM automatically retries when a 503 response is received.
However, our service already handles retries for undelivered messages through scheduling, so we do not want to use the default retry strategy.

public static HttpRequestFactory newAuthorizedRequestFactory(
	FirebaseApp app, @Nullable RetryConfig retryConfig) {
	HttpTransport transport = app.getOptions().getHttpTransport();
	return transport.createRequestFactory(new FirebaseRequestInitializer(app, retryConfig));
}

To disable this behavior, I attempted to use a method provided in the ApiClientUtils class.
However, after debugging the initialization process, I found that it is not possible to set a custom RetryConfig value.

I assume there is a valid reason for restricting the redefinition of RetryConfig.
For example, it may be to prevent retries for responses other than 5xx errors or to avoid excessive retry requests within a short period.

What I would like is the ability to enable or disable the retry feature as needed.
I will proceed with creating a PR for this.

Dominant language
Java
Stars
620
Forks
305
Avg merge
3h 23m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-java

All issues in firebase/firebase-admin-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.