Create an instant-enabled app bundle

You create an Google Play Instant experience by including it as part of
an Android App Bundle. Such a bundle is known as an
instant-enabled app bundle. This document shows you how to set up your
development environment for instant-enabled app bundles, as well as how to
configure, build, test, and publish an instant-enabled app bundle.

Execution environment

Google Play Instant runs instant-enabled app bundles in a special kind of
SELinux sandbox for added security. To be compatible with this environment, you
need to create the following configuration within your instant-enabled app
bundle:

Test on a local machine

To test your app's instant experience on a local machine, complete the following
steps:

If you have an installed version of your app on your test device, uninstall
it.

In Android Studio, from the installation options that appear on the
General tab of the Run/Debug Configurations
dialog, enable the Deploy as instant
app checkbox.

Select Run > Run in the menu bar, or click Run in the
toolbar, then choose the device where you'd like to test your app's instant
experiences. Your app's instant experience loads on the test device that you've
chosen.

Note: Instant experiences are available only on devices running Android 5.0
(API level 21) or higher.

Publish to the internal test track

To test your app's instant experience from the Play Store or a banner on your
website, publish the app to the internal test
track
on the Play Console. To do so, complete the following steps:

Prepare the uploaded bundle for a release to the internal test track. For
more information, see the support article on how to Prepare & roll out
releases.

Sign into an internal tester account on a device, then launch your instant
experience from one of the following surfaces:

The Try Now button from your app's Play Store listing.

A link from a banner on your app's website.

Note: When you use Google Play's internal test track, the Play Console doesn't
apply the size limits discussed in the Google Play Instant overview.
Therefore, you can test and internally showcase an instant experience, even if
it's larger than 10 MB.

Publish the app bundle to the production track

To publish your instant-enabled app bundle, complete the following steps: