Google Play Instant Plugin for Unity Beta (Archived)

Overview

The code for this project has been migrated to the Google Play Plugins for Unity project, and this GitHub project is now archived.

Refer to the developer documentation for the latest information about the Google Play Instant Plugin for Unity.

Migration details

LoadingScreen
Google.Play.InstantGooglePlayInstantusing GooglePlayInstant;

The new Google Play Plugins for Unity no longer supports the ability to set a custom instant apps URL.

Migration steps

.unitypackageAssets/GooglePlayInstant.unitypackageAssets/play-instant-unity-plugingit clone.unitypackageusing GooglePlayInstant;using Google.Play.Instant;

Known issues

Launching an instant app from the Play Store redirects to the browser

This issue occurs when launching an instant app if the following is true:

  1. Your currently released instant app is launchable via a custom URL.
  2. You have uploaded a version of your instant app that does not specify a custom URL to alpha or internal test.
  3. You are trying to launch this non-production version of your instant app.

The latest plugin no longer supports the ability to set a custom instant apps URL. If your app previously included a custom instant apps URL, uploading an app built with the latest plugin could trigger this issue.

There are two workarounds:

  1. The issue will not occur for an instant app in production, so release the app to production to eliminate the issue.
  2. If you'd prefer to fix the issue in alpha, add the browsable intent filter and default url tags to the UnityPlayerActivity in your app's manifest: