From fc2ff032076ecd4581e64fedd1050c474ad3cfda Mon Sep 17 00:00:00 2001 From: Tafel <35837839+tafelnl@users.noreply.github.com> Date: Mon, 16 Jan 2023 11:47:24 +0100 Subject: [PATCH] docs: add clarification about Analytics SDK --- docs/main/guides/push-notifications-firebase.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/main/guides/push-notifications-firebase.md b/docs/main/guides/push-notifications-firebase.md index 9d9ca2c1..6905ba09 100644 --- a/docs/main/guides/push-notifications-firebase.md +++ b/docs/main/guides/push-notifications-firebase.md @@ -246,7 +246,13 @@ Download the `google-services.json` file to your local machine. Then move the fi ![Google Services JSON Location for Android](../../../static/img/v4/docs/guides/firebase-push-notifications/google-services-location-android.png) -We don't need to _add_ any dependencies to our project because Capacitor projects automatically include a version of `firebase-messaging` in it's `build.gradle` file. +### Add the Firebase SDK + +You _don't_ need to _add_ any dependencies to your project - in contrary to iOS - because the `@capacitor/push-notifications` plugin automatically includes a version of `firebase-messaging` in it's `build.gradle` file. + +#### Firebase Analytics SDK + +You might want to add the Firebase Analytics SDK to your project. This is not needed for push notifications to work. However, it adds additional functionality that you might want to make use of. For example: it automatically collects messaging tokens and sends it to your Firebase dashboard. This will enable the possibilty to send push notifications from the Firebase dashboard. ## iOS @@ -338,6 +344,10 @@ post_install do |installer| end ``` +#### Firebase Analytics SDK + +You might want to add the Firebase Analytics SDK to your project. This is not needed for push notifications to work. However, it adds additional functionality that you might want to make use of. For example: it automatically collects messaging tokens and sends it to your Firebase dashboard. This will enable the possibilty to send push notifications from the Firebase dashboard. + ### Update the Project Now we'll need to ensure that our iOS project is updated with the proper Firebase CocoaPod installed.