Getting Started with GetSocial Unity SDK¶
Welcome to the Getting Started section of the GetSocial documentation. Here you will find guides that describe how to accomplish a specific task with code samples you can re-use in your app.
System Requirements¶
To use GetSocial SDK your execution and development environment should match the following requirements:
- Unity 5.2 or above
-
To deploy on Android:
- Android v4.0.3 (SDK v15) or higher
- Android Developers Tools (ADT) version 19 or above
- Google Play Services library v6.1.11 or above (for push notifications)
-
To deploy on iOS:
- Xcode 10.2 or above (if you need to use older Xcode version, please use SDK version v6.28.x)
- iOS 8 or higher
Not sure if GetSocial is going to work in your specific configuration or need support for the earlier versions of Unity? Feel free to reach us via Intercom or email.
Adding GetSocial to Your App¶
Create App on the Dashboard¶
To start using GetSocial, you have to create a free account and login to GetSocial Dashboard. Dashboard provides a web interface to manage all GetSocial services.
- Login to GetSocial Dashboard.
- Open Add new app wizard.
- Fill in App name and upload App icon image.
- Select Unity platform and Finish the wizard.
Configure GetSocial Editor Plugin¶
- Download the latest GetSocial
.unitypackage
from the Downloads page. -
In your Unity project go to Assets → Import Package → Custom Package…, select downloaded
.unitypackage
and import all assets: -
After the successful project build you have to see GetSocial menu:
-
Configure GetSocial App Id, go to GetSocial → Edit Settings:
You can find GetSocial App id in the App settings section on the GetSocial Dashboard:
-
If you do not plan to use GetSocial UI, you can uncheck Use GetSocial UI setting to remove UI binaries from the build.
-
Validate Android and iOS Settings.
After specifying App id GetSocial Unity plugin will get application configuration from the GetSocial Dashboard and display it inside Unity. You can change the values by clicking on them (Dashboard will be opened):
Enable Supported App Stores on the Dashboard¶
Next step is to enable Google Play and Apple App Store on the GetSocial Dashboard:
- On the App settings section → App information tab.
-
Enable Google Play store → fill in Package name and Signing-certificate fingerprint fields.
Package name is the
applicationId
in your app-levelbuild.gradle
file.Signing-certificate fingerprint is a SHA-256 hash of the keystore you use to sign your application. To get it, open GetSocial settings in Unity, go to GetSocial → Edit Settings:
-
Enable Apple App Store → fill in Bundle ID, Team ID and optionally App Store ID fields:
Bundle ID is a part of the iOS App ID. You can find bundle identifier in the Xcode project → General Settings → Identity → Bundle Identifier.
Team ID is a unique 10-character string generated by Apple that’s assigned to your team. You can find your Team ID using your Apple developer account → Membership.
App Store ID number can be found in the iTunes store URL as the string of numbers directly after
id
. For Example, inhttps://itunes.apple.com/us/app/yourapp/id284709449
the ID is:284709449
.
GetSocial SDK Size¶
Android¶
Due to limited resources on mobile devices and 65k methods limitation in one DEX library size and added methods count play an important role in app development.
Below you can find size and method count values for GetSocial Android SDK v6.29.0. You can expect similar values for all future versions of the library.
Android Library | Raw Aar Size | Methods Count |
---|---|---|
getsocial-core.aar |
0.86 MB | 4788 |
getsocial-ui.aar |
0.44 MB | 3365 |
iOS¶
On iOS GetSocial SDK adds ~ 1.5 MB to the application downloadable size. Please note that GetSocial.framework
size included in Unity SDK is around 36 MB. Read more about framework size on iOS.
Start Using GetSocial¶
At this point, you should be able to start using GetSocial. Let’s try to send our first Smart Invite with and without GetSocial UI.
GetSocial SDK supports limited number of features in Unity Editor
Please note, that GetSocial SDK works in unity editor with a limited functionality. Features like sending/receiving invites, receiving push notifications and uploading Texture2D
objects are not supported.
GetSocial UI¶
GetSocial UI library contains easy to customize views for all GetSocial features, e.g. code below will create and show GetSocial Smart Invites view:
bool wasShown = GetSocialUi.CreateInvitesView().Show();
Debug.Log("Smart Invites view was shown: " + wasShown);
After invoking code above, GetSocial Smart Invites view will be shown:

Why there are only a few apps?
The list of Smart Invites Channels in the view above will contain all social apps that are 1) enabled on the GetSocial Dashboard and 2) installed on the device.
GetSocial without UI¶
If you plan to build your own UI, you can remove GetSocial UI library from dependencies and use only GetSocial data layer. To run the test, add the code below to any button callback:
GetSocial.SendInvite(InviteChannelIds.Email,
onComplete: () => Debug.Log("Invitation via EMAIL was sent"),
onCancel: () => Debug.Log("Invitation via EMAIL was cancelled"),
onFailure: (error) => Debug.LogError("Invitation via EMAIL failed, error: " + error.Message)
);
After calling this method email client will be opened:

SDK Initialization¶
GetSocial SDK is auto-initialized, just provide a GetSocial App Id in the GetSocial settings in Unity editor, and we will do the magic.
Manual Initialization
If you want to initialize GetSocial SDK manually, check this topic.
Most of GetSocial APIs require the SDK to be initialized. You can check the SDK initialization state synchronously or asynchronously.
if (GetSocial.IsInitialized) {
// use GetSocial
}
If you want to be notified about initialization complete, you can set an action, that will be invoked when SDK gets initialized or invoked immediately if it is already initialized:
GetSocial.WhenInitialized(() => {
// GetSocial is ready to be used
});
For instance, you can use WhenInitialized
to ensure GetSocial SDK is initialized to get referral data on the application start:
public class Controller : MonoBehaviour
{
...
void Awake()
{
...
GetSocial.WhenInitialized(() => {
GetSocial.GetReferralData(...);
});
...
}
...
}
Demo Application¶
To showcase all GetSocial SDK features, we have created a simple demo application. Explore it on the GitHub.
Next Steps¶
Well-done! GetSocial SDK is now set up and ready to rock, check what you can do next:
- Set up deep linking and drive users from web to your mobile app with Smart Links, Smart Widget and Smart Banners.
- Implement referral campaigns or content sharing with Smart Invites.
- Create in-app communities, learn about Activity Feed.
- Implement notifications center to re-engage existing users with Notifications.