Installation

Step by step to install the Unity SDK:

  • Download the Tyr Unity SDK package from the official repository here

  • 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.

Last updated