Skip to main content
This document lists the basic prerequisites and requirements necessary to integrate PlayFab Party into your Android applications. Once you’ve set up your system according to this document, please have a look at the Quickstart for PlayFab Party for getting set up with the building blocks of PlayFab Party.

Prerequisites

Before you start this tutorial, please ensure that the following prerequisites have been met:
  1. You created a PlayFab developer account.
  2. You created a PlayFab Title and your title has been allow-listed for PlayFab Party.
  3. You have Android Studio version 3.2 or higher installed.
  4. Your app targets Android 4.4 (Kitkat) or higher.
  5. You have the Android NDK 18.1.5063045 or higher installed.
  6. You have access to the PlayFab Party platforms repository
  7. You have created an android signing cert and signed your app for deployment using the cert config.

Including the required libraries and header files

You’ll need to include the following header files from the PlayFab Party distribution repository. LIB Files
  1. libParty.a
  2. libcrypto.a
  3. libssl.a
The SSL libraries are built from Open SSL Version 1.1.1b-dev. Please use an openSSL version that is 1.1.1b-dev or higher.
Header Includes Party Headers
In addition to the lib files and headers above, you’ll also need the libs and headers for PlayFab SDK and any other platform-specific dependencies your app needs. Please take a look at the project file organization for the Android sample for more info.

Steps to get PlayFab Party working on Android

Since the core Party library is written using C++, we’ll need to make a simple JNI wrapper class to access the Party lib functionality. At a high level, you’ll want a class that has access to Party API methods to create a network, connect to a network, and send messages across a network. We’ve achieved this in our demo app via the NetworkManager Java class.
The above JNI bridge is backed by a pure C++ implementation file that calls into the NetworkManager.cpp, which in turn calls the Party APIs. Here’s an example snippet that shows the various layers: The NetworkManager Java interface exposes a method to join a Party Network.
The implementation of the joinNetwork is in the C++ layer in PartyDemo.cpp shown below.
In the code snippet above, the joinNetwork calls into NetworkManager::CreateAndConnectToNetwork() which in turn calls the raw Party API exposed in Party.h
In a similar way, each method in the NetworkManager JNI interface is mapped to Party API via the PartyDemo and NetworkManager.

Next steps

In this article we saw how to get started integrating the Party library into your Android application. Please refer to Quickstart For PlayFab Party for getting set up with the rest of the building blocks of PlayFab Party.
Last modified on August 4, 2026