{
    "componentChunkName": "component---src-templates-doc-article-js",
    "path": "/sdk/v5/android/push/guides/setting-up-firebase/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Notificare Docs"}},"mdx":{"id":"bd59385e-97f9-57c1-8919-2d0af747b15b","body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Setting up Firebase | Remote Notifications| Android | SDK\",\n  \"lang\": \"en\",\n  \"description\": \"...\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h1\", null, \"Setting up Firebase\"), mdx(\"p\", null, \"Before you can start sending messages to Android, you will have to at least set up a Firebase Cloud Messaging (FCM) project. This is all done via the Firebase Console. This guide walks you through generating the required Service Account JSON file and uploading it to your Actito app settings.\"), mdx(\"h2\", null, \"Create a Firebase project\"), mdx(\"p\", null, \"Go to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://console.firebase.google.com/\"\n  }, \"Firebase console\"), \" and create a new project. If you already have a Firebase project, you can skip this step.\"), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1128px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"36.8%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase create project\",\n    \"title\": \"firebase create project\",\n    \"src\": \"/static/37c40366f47b591d4068ceb3e06b388c/7bf07/firebase-create-project.png\",\n    \"srcSet\": [\"/static/37c40366f47b591d4068ceb3e06b388c/5ff7e/firebase-create-project.png 375w\", \"/static/37c40366f47b591d4068ceb3e06b388c/1d69c/firebase-create-project.png 750w\", \"/static/37c40366f47b591d4068ceb3e06b388c/7bf07/firebase-create-project.png 1128w\"],\n    \"sizes\": \"(max-width: 1128px) 100vw, 1128px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"p\", null, \"Check the official \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://firebase.google.com/docs/android/setup#create-firebase-project\"\n  }, \"Firebase documentation\"), \" for more information on creating a Firebase project.\"), mdx(\"h2\", null, \"Enabling Firebase Cloud Messaging\"), mdx(\"p\", null, \"In Firebase, click on the gear icon next to \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Project overview\"), \" and select \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Project settings\"), \". Then, click on the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Cloud Messaging\"), \" tab.\"), mdx(\"p\", null, \"If the Firebase Cloud Messaging API (v1) is not enabled, you will see the following message.\"), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1101px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"38.13333333333333%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase cloud messaging disabled\",\n    \"title\": \"firebase cloud messaging disabled\",\n    \"src\": \"/static/df7dec0db6b9b2b63127394cfa0b4661/67fe0/firebase-cloud-messaging-disabled.png\",\n    \"srcSet\": [\"/static/df7dec0db6b9b2b63127394cfa0b4661/5ff7e/firebase-cloud-messaging-disabled.png 375w\", \"/static/df7dec0db6b9b2b63127394cfa0b4661/1d69c/firebase-cloud-messaging-disabled.png 750w\", \"/static/df7dec0db6b9b2b63127394cfa0b4661/67fe0/firebase-cloud-messaging-disabled.png 1101w\"],\n    \"sizes\": \"(max-width: 1101px) 100vw, 1101px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"p\", null, \"Click on the 3-dot menu and go to the Google Cloud Platform page to enable it.\"), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"719px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"49.06666666666666%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase cloud messaging enable api\",\n    \"title\": \"firebase cloud messaging enable api\",\n    \"src\": \"/static/daa23045c6971baf9146679a484dbd36/073e9/firebase-cloud-messaging-enable-api.png\",\n    \"srcSet\": [\"/static/daa23045c6971baf9146679a484dbd36/5ff7e/firebase-cloud-messaging-enable-api.png 375w\", \"/static/daa23045c6971baf9146679a484dbd36/073e9/firebase-cloud-messaging-enable-api.png 719w\"],\n    \"sizes\": \"(max-width: 719px) 100vw, 719px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"h2\", null, \"Generate a Service Account\"), mdx(\"p\", null, \"In Firebase, go to the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Project overview > Project settings > Service accounts\"), \" tab and generate a new Service Account for the Firebase Admin SDK.\"), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1098px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"74.66666666666667%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase generate service account\",\n    \"title\": \"firebase generate service account\",\n    \"src\": \"/static/4245bc5d95dbdd8706b3b8d875740460/99661/firebase-generate-service-account.png\",\n    \"srcSet\": [\"/static/4245bc5d95dbdd8706b3b8d875740460/5ff7e/firebase-generate-service-account.png 375w\", \"/static/4245bc5d95dbdd8706b3b8d875740460/1d69c/firebase-generate-service-account.png 750w\", \"/static/4245bc5d95dbdd8706b3b8d875740460/99661/firebase-generate-service-account.png 1098w\"],\n    \"sizes\": \"(max-width: 1098px) 100vw, 1098px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"p\", null, \"Save the Service Account JSON file somewhere safe. You will need it to configure your Notificare application.\"), mdx(\"h2\", null, \"Upload the Service Account JSON file\"), mdx(\"p\", null, \"To configure you Notificare application, open the application in the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://dashboard.notifica.re\"\n  }, \"Dashboard\"), \" and navigate to the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Services\"), \" section via \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Menu > Settings > Services\"), \".\"), mdx(\"p\", null, \"Click the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Configure\"), \" button on the FCM card.\"), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"537px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"91.73333333333333%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase dashboard fcm card\",\n    \"title\": \"firebase dashboard fcm card\",\n    \"src\": \"/static/3cd74ec48c5ce0a06391b23e6a2adf4a/b1cde/firebase-dashboard-fcm-card.png\",\n    \"srcSet\": [\"/static/3cd74ec48c5ce0a06391b23e6a2adf4a/5ff7e/firebase-dashboard-fcm-card.png 375w\", \"/static/3cd74ec48c5ce0a06391b23e6a2adf4a/b1cde/firebase-dashboard-fcm-card.png 537w\"],\n    \"sizes\": \"(max-width: 537px) 100vw, 537px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"p\", null, \"Then, upload the Service Account JSON file you previously downloaded and click \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Save\"), \".\"), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"1500px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"19.733333333333334%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase dashboard upload service file\",\n    \"title\": \"firebase dashboard upload service file\",\n    \"src\": \"/static/6bd39e2801f4ad7d9693184815fdb009/aa440/firebase-dashboard-upload-service-file.png\",\n    \"srcSet\": [\"/static/6bd39e2801f4ad7d9693184815fdb009/5ff7e/firebase-dashboard-upload-service-file.png 375w\", \"/static/6bd39e2801f4ad7d9693184815fdb009/1d69c/firebase-dashboard-upload-service-file.png 750w\", \"/static/6bd39e2801f4ad7d9693184815fdb009/aa440/firebase-dashboard-upload-service-file.png 1500w\", \"/static/6bd39e2801f4ad7d9693184815fdb009/c263c/firebase-dashboard-upload-service-file.png 1631w\"],\n    \"sizes\": \"(max-width: 1500px) 100vw, 1500px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"p\", null, \"Upon saving, the service account will appear as follows:\"), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"965px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"13.600000000000001%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase dashboard service account ready\",\n    \"title\": \"firebase dashboard service account ready\",\n    \"src\": \"/static/61f7785c0a40488f8d439e2178acc55b/0fb99/firebase-dashboard-service-account-ready.png\",\n    \"srcSet\": [\"/static/61f7785c0a40488f8d439e2178acc55b/5ff7e/firebase-dashboard-service-account-ready.png 375w\", \"/static/61f7785c0a40488f8d439e2178acc55b/1d69c/firebase-dashboard-service-account-ready.png 750w\", \"/static/61f7785c0a40488f8d439e2178acc55b/0fb99/firebase-dashboard-service-account-ready.png 965w\"],\n    \"sizes\": \"(max-width: 965px) 100vw, 965px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"h2\", null, \"Register your app with Firebase\"), mdx(\"p\", null, \"To use Firebase in your Android app, you need to register your app with your Firebase project. Registering your app is often called \\\"adding\\\" your app to your project.\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Go to the \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://console.firebase.google.com/\"\n  }, \"Firebase Console\"), \".\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"In the center of the project overview page, click the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Android\"), \" icon or \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Add app\"), \" to launch the setup workflow.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Enter your app's package name in the Android package name field.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Click \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Register app\"), \".\")), mdx(\"p\", null, mdx(\"span\", {\n    parentName: \"p\",\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"552px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"132%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"firebase register app\",\n    \"title\": \"firebase register app\",\n    \"src\": \"/static/e356e9e3ed3a532026388a52c70e1459/08c0b/firebase-register-app.png\",\n    \"srcSet\": [\"/static/e356e9e3ed3a532026388a52c70e1459/5ff7e/firebase-register-app.png 375w\", \"/static/e356e9e3ed3a532026388a52c70e1459/08c0b/firebase-register-app.png 552w\"],\n    \"sizes\": \"(max-width: 552px) 100vw, 552px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \")), mdx(\"h2\", null, \"Add a Firebase configuration file\"), mdx(\"p\", null, \"Download and then add your app's Firebase config file (\", mdx(\"code\", {\n    parentName: \"p\",\n    \"className\": \"language-text\"\n  }, \"google-services.json\"), \") to your codebase:\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Click \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Download google-services.json\"), \" to obtain your app's Firebase config file.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Move your config file into the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"module (app-level)\"), \" directory of your app.\")), mdx(\"p\", null, \"To make the values in your \", mdx(\"code\", {\n    parentName: \"p\",\n    \"className\": \"language-text\"\n  }, \"google-services.json\"), \" config file accessible to Firebase SDKs, you need the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developers.google.com/android/guides/google-services-plugin\"\n  }, \"Google services Gradle plugin\"), \" (\", mdx(\"code\", {\n    parentName: \"p\",\n    \"className\": \"language-text\"\n  }, \"google-services\"), \").\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"In your \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"root-level (project-level)\"), \" Gradle file (\", mdx(\"code\", {\n    parentName: \"li\",\n    \"className\": \"language-text\"\n  }, \"<project>/build.gradle.kts\"), \" or \", mdx(\"code\", {\n    parentName: \"li\",\n    \"className\": \"language-text\"\n  }, \"<project>/build.gradle\"), \"), add the Google services plugin as a dependency:\")), mdx(\"div\", {\n    \"className\": \"gatsby-highlight\",\n    \"data-language\": \"kotlin\"\n  }, mdx(\"pre\", {\n    parentName: \"div\",\n    \"style\": {\n      \"counterReset\": \"linenumber NaN\"\n    },\n    \"className\": \"language-kotlin line-numbers\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-kotlin\"\n  }, \"plugins \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"{\"), \"\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token function\"\n  }, \"id\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"(\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token string\"\n  }, \"\\\"com.android.application\\\"\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \")\"), \" version \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token string\"\n  }, \"\\\"8.13.0\\\"\"), \" apply \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token boolean\"\n  }, \"false\"), \"\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token comment\"\n  }, \"// ...\"), \"\\n\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token comment\"\n  }, \"// Add the dependency for the Google services Gradle plugin\"), \"\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token function\"\n  }, \"id\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"(\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token string\"\n  }, \"\\\"com.google.gms.google-services\\\"\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \")\"), \" version \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token string\"\n  }, \"\\\"4.4.4\\\"\"), \" apply \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token boolean\"\n  }, \"false\"), \"\\n\", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"}\")), mdx(\"span\", {\n    parentName: \"pre\",\n    \"aria-hidden\": \"true\",\n    \"className\": \"line-numbers-rows\",\n    \"style\": {\n      \"whiteSpace\": \"normal\",\n      \"width\": \"auto\",\n      \"left\": \"0\"\n    }\n  }, mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  })))), mdx(\"ol\", {\n    \"start\": 2\n  }, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"In your \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"module (app-level)\"), \" Gradle file (usually \", mdx(\"code\", {\n    parentName: \"li\",\n    \"className\": \"language-text\"\n  }, \"<project>/app/build.gradle.kts\"), \" or \", mdx(\"code\", {\n    parentName: \"li\",\n    \"className\": \"language-text\"\n  }, \"<project>/app/build.gradle\"), \"), add the Google services plugin:\")), mdx(\"div\", {\n    \"className\": \"gatsby-highlight\",\n    \"data-language\": \"kotlin\"\n  }, mdx(\"pre\", {\n    parentName: \"div\",\n    \"style\": {\n      \"counterReset\": \"linenumber NaN\"\n    },\n    \"className\": \"language-kotlin line-numbers\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-kotlin\"\n  }, \"plugins \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"{\"), \"\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token function\"\n  }, \"id\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"(\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token string\"\n  }, \"\\\"com.android.application\\\"\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \")\"), \"\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token comment\"\n  }, \"// ...\"), \"\\n\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token comment\"\n  }, \"// Add the Google services Gradle plugin\"), \"\\n  \", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token function\"\n  }, \"id\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"(\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token string\"\n  }, \"\\\"com.google.gms.google-services\\\"\"), mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \")\"), \"\\n\", mdx(\"span\", {\n    parentName: \"code\",\n    \"className\": \"token punctuation\"\n  }, \"}\")), mdx(\"span\", {\n    parentName: \"pre\",\n    \"aria-hidden\": \"true\",\n    \"className\": \"line-numbers-rows\",\n    \"style\": {\n      \"whiteSpace\": \"normal\",\n      \"width\": \"auto\",\n      \"left\": \"0\"\n    }\n  }, mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  }), mdx(\"span\", {\n    parentName: \"span\"\n  })))), mdx(\"h2\", null, \"Multiple Firebase projects\"), mdx(\"p\", null, \"If your setup uses multiple Firebase projects, typically for development and production, you can use different Firebase configuration files for each environment. Place the Firebase configuration files in the following locations:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Production configuration\"), \": \", mdx(\"code\", {\n    parentName: \"li\",\n    \"className\": \"language-text\"\n  }, \"app/google-services.json\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Development configuration\"), \": \", mdx(\"code\", {\n    parentName: \"li\",\n    \"className\": \"language-text\"\n  }, \"app/src/debug/google-services.json\"))), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"This approach uses Android's build configuration to determine which configuration file to use. You can read more about this approach in the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developer.android.com/studio/build/build-variants\"\n  }, \"Android documentation\"), \".\")));\n}\n;\nMDXContent.isMDXComponent = true;","frontmatter":{"title":"Setting up Firebase | Remote Notifications| Android | SDK","description":"..."}}},"pageContext":{"slug":"/sdk/v5/android/push/guides/setting-up-firebase/","previous":{"fields":{"slug":"/sdk/v5/android/push/advanced/"},"frontmatter":{"title":"Advanced | Remote notifications | Android | SDK","description":"..."}},"next":{"fields":{"slug":"/sdk/v5/android/push/guides/setting-up-google-maps/"},"frontmatter":{"title":"Setting up Google Maps | Remote Notifications | Android | SDK","description":"..."}},"language":"en","intl":{"language":"en","languages":["en"],"messages":{"title":"Notificare Docs","description":"Find the newest resources, guides and code. Make the most out of your app using our SDK and APIs.","author":"@notificare","pages.404.title":"These aren't the droids you're looking for","pages.404.description":"Probably the page you are looking for does not exist or was recently moved. If you think something is wrong please contact us.","pages.home.title":"Help Center","pages.home.description":"Find the newest resources, guides and code. Make the most out of your app using our SDK and APIs.","components.cookieManager.title":"Cookie Settings","components.cookieManager.text":"This website uses the following types of cookies; strictly necessary, performance, functional and marketing cookies. For specific information regarding how these cookies may impact your experience please read our <a href='/cookies'>Cookie Policy</a> and <a href='/privacy'>Privacy Policy</a>.","components.cookieManager.types.strict.label":"Strict","components.cookieManager.types.functional.label":"Functional","components.cookieManager.types.performance.label":"Performance","components.cookieManager.types.marketing.label":"Marketing","components.cookieManager.button":"Save Settings","components.search.query.placeholder":"Type your search","components.search.query.button":"Search","components.search.query.error":"Please insert some search terms","components.search.query.noResults":"No results found for your search terms","components.footer.copyright":"Notificare","components.footer.platform":"Platform Status","components.notificare.onBoarding.text":"Would you like to receive push notifications from our website?","components.notificare.onBoarding.cancelText":"No","components.notificare.onBoarding.acceptText":"Yes","shared.readMore":"Read more","shared.latestVersion":"Latest Version:","shared.jumpTo":"Jump to:","shared.sdkWarning":"These are deprecated or outdated SDK guides. Make sure you use the latest version of our libraries in order to benefit from all the new features, important bug fixes and security updates.","shared.guidesWarning":"You are viewing guides to a legacy interface that will be discontinued on January 1 2024. Please consider switching to the new interface.","shared.comingSoon":"Coming Soon"},"routed":false,"originalPath":"/sdk/v5/android/push/guides/setting-up-firebase/","redirect":false,"redirectDefaultLanguageToRoot":false,"defaultLanguage":"en","fallbackLanguage":"","ignoredPaths":[]}}},
    "staticQueryHashes": ["1473005414","63159454"]}