SDK
v2.0
v2.0
  • Getting Started
    • Welcome
    • Start Here
    • Postback Payout (S2S)
    • Advanced options
      • Sending Media Source Data
      • Sending User Segments / User Info
  • Unity
    • Installation
    • Initialization
    • Obtaining Adverstising ID's
  • Android
    • Prerequisite
    • Installation
    • Initialization
      • Deeplinking Routes
      • Premium Offers
    • Obtaining Adverstising ID's
  • Flutter
    • Prerequisite
    • Installation
    • Initialization
      • Deeplinking Routes
      • Premium Offers
      • changeLanguage
    • Obtaining Advertising ID's
  • REACT NATIVE
    • Prerequisites
    • Installation
    • Initialization
      • Deeplinking Routes
      • Premium Offers
    • Obtaining Advertising ID's
  • Web / Iframe
    • Initialization
    • Premium Widgets
  • Questions and troubleshooting
    • Reporting bugs
    • Known issues
    • Changelog
Powered by GitBook
On this page
  1. Unity

Installation

PreviousSending User Segments / User InfoNextInitialization

Last updated 16 days ago

Step by step to install the Unity SDK:

  • Download the Tyr Unity SDK package from the official repository

  • Drag and drop the SDK package to your opened Unity project and click Import

Required Android Permissions

To ensure proper functionality of the SDK, please add the following permissions manually to your project's main AndroidManifest.xml file, located at:

Assets/Plugins/Android/AndroidManifest.xml

Permissions to Add:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
                 tools:ignore="QueryAllPackagesPermission" />
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

Important Notes:

  • Placement: Add the permissions inside the <manifest> tag but outside the <application> tag.

  • Manual Integration: These permissions are not added automatically due to a conflict with main AndroidManifest Make sure to insert them manually.

  • Minimum SDK Requirements:

    • QUERY_ALL_PACKAGES and PACKAGE_USAGE_STATS may require your app to target API level 30+.

    • Google Play may require justification for using QUERY_ALL_PACKAGES.

here