Skip to content

docs: add clarification about Analytics SDK #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/main/guides/push-notifications-firebase.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down