Is it possible to publish instant app without associated URL?

Viewed 1287

According to this article (20 August, 2018) from Android Blog we can publish instant apps without associated URL:

Today, we've made it easier to build instant games and apps by removing the URL requirement. Previously, in order to publish an instant game you had to create a web destination for it. The website also had to be connected to the instant game through intent filters and digital asset links verification.

Now, it is no longer required to add URL-based intent filters to your instant game. People will be able to access the instant experience through a 'Try Now' button in the Play Store or Play Games apps, via deep link API, and in the future through the app ads.

I've followed the latest Android guide to enable instant experience in my game. The guide doesn't mention anything about required URL verification. The app works on local device, but when I try to publish it to internal test track, I see the following error:

Your Instant App APKs do not declare at least one web 'intent-filter' element with the attribute 'android:autoVerify' set to true in the Android Manifest.

Is it possible to publish instant app without associated URL? Like it's explained in the Android blog post with standard intent filter below:

<intent-filter>
   <action android:name="android.intent.action.MAIN" />
   <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

Probably Google has updated all guides but has forgotten to remove this check during instant app publishing? I hope so, because I don't want to create a web-site to be able to publish instant version of my game.

2 Answers

You can create an app with instant experience without associated URL. This sample.

For an app with instant experience you no longer need the com.android.instantapp plugin unless you want to use dynamic feature modules at this point.

When onDemand modules leave beta, you can start using the com.android.dynamic-feature plugin in combination with the PlayCore API to download a module.

Until then you'll have to use the com.android.feature and com.android.instantapp plugin to download multiple feature modules.

Yes, it is possible to create an instant app without associated URL, just follow the official instructions from Google.

Many thanks to @HassanIbraheem who has pointed me to the right direction. My problem was with one more intent filter for firebase dynamic links with http and https schemas that I use in the app in addition to standard intent filter. It was used only for tests, thus I was able to delete it. After I removed the intent filter, I was able to publish instant app to Google Play Console without associated URL.

Related