From ce3735109938cadeef5d9b279fe64fd789d9be6d Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Fri, 7 Nov 2025 08:08:01 +0100 Subject: [PATCH] fix(android): possible fix for notifications --- app.config.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app.config.js b/app.config.js index 6621e022..20860647 100644 --- a/app.config.js +++ b/app.config.js @@ -10,10 +10,15 @@ module.exports = ({ config }) => { // Add the background downloader plugin only for non-TV builds config.plugins.push("./plugins/withRNBackgroundDownloader.js"); } + + // Only override googleServicesFile if env var is set + const androidConfig = {}; + if (process.env.GOOGLE_SERVICES_JSON) { + androidConfig.googleServicesFile = process.env.GOOGLE_SERVICES_JSON; + } + return { - android: { - googleServicesFile: process.env.GOOGLE_SERVICES_JSON, - }, + ...(Object.keys(androidConfig).length > 0 && { android: androidConfig }), ...config, }; };