How to set up Android push notifications

Estimated 2 minute read
|
Updated Nov 11, 2024, 10:27 AM EST
You will learn

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 begin

Before you begin

There are 4 prerequisites for using push notifications in Klaviyo; you must:

  1. Have your own native mobile Android app.
  2. Create a Google service account.
  3. Generate a Google service authentication key that will be uploaded to Klaviyo (more details below).
  4. Install the Klaviyo SDK and set up event tracking and push notifications in your Android app.
Set up Android push

Set up Android push

  1. Click your organization name in the lower left corner.
  2. Navigate to Settings > Push notifications
  3. On the Mobile app settings page, click Enable next to the Android option.
  4. 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" }
  5. Click Save to finish setting up push notifications for your Android app. 
    Android push notification setup screen
Outcome

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 resources

Additional resources

Want to request a feature for Klaviyo push notifications? Fill out this Google form to tell us about it! 

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type