You will learn
Learn how to set up push notifications for Android in your Klaviyo account. After you've completed the steps in this article you'll be able to send push notifications in your flows and campaigns.
Before you beginBefore you begin
There are 4 prerequisites for using push notifications in Klaviyo; you must:
- Have your own native mobile Android app.
- Create a Google service account.
- Generate a Google service authentication key that will be uploaded to Klaviyo (more details below).
- Install the Klaviyo SDK and set up event tracking and push notifications in your Android app.
Set up Android push
- Click your organization name in the lower left corner.
- Navigate to Settings > Push notifications.
- On the Mobile app settings page, click Enable next to the Android option.
- Fill out the required information:
-
Package name
Add in your package name, which you can find in the URL of your listing in the Google Play store. It looks like: com.yourcompany.yourproject. -
Google service authentication key
Create your Google service authentication key and then upload the JSON file to Klaviyo. The JSON file for the key should look like:{ "type": "service_account",
"project_id": "PROJECT_ID",
"private_key_id": "KEY_ID",
"private_key": "-----BEGIN PRIVATE KEY-----\nPRIVATE_KEY\n-----END PRIVATE KEY-----\n",
"client_email": "SERVICE_ACCOUNT_EMAIL",
"client_id": "CLIENT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/SERVICE_ACCOUNT_EMAIL" }
-
Package name
- Click Save to finish setting up push notifications for your Android app.
Outcome
You’ll now be able to send push notifications to your Android app users, letting them know about their abandoned carts or special in-app deals.
Additional resourcesAdditional resources
Want to request a feature for Klaviyo push notifications? Fill out this Google form to tell us about it!