Questions tagged [android-instant-apps]

Android Instant Apps are special kind of native mobile apps that can be run instantly on Android device, without prior installation, just by clicking on a web link - or the Try Now button in the Play Store. Use this tag for questions about Android Instant Apps development, debugging and deployment. Consider adding [android] tag as well.

Android Instant Apps were presented during Google I/O 2016 as a way of launching native Android applications without requiring a user to install them. Instant Apps are launched by simply clicking on a web link.

Resources

Android Instant Apps introduction

Frequently Asked Questions

Preparing your app

Code samples

540 questions
3
votes
1 answer

Instant apps advice on how to perform delayed background work

According to the Google FAQ on instant apps: For example, an instant app cannot use background services, send background notifications, or access unique device identifiers. So my main question is: what are the best practices for doing small…
Tepes Lucian
  • 908
  • 1
  • 7
  • 17
3
votes
0 answers

Multicast & Instant Apps

Usually I can use a MulticastSocket or a network service discovery to find a server over a Wi-Fi network try (MulticastSocket multicastSocket = new MulticastSocket(Network.DISCOVERY_PORT)) { …
Greelings
  • 4,964
  • 7
  • 34
  • 70
3
votes
1 answer

How to transfer the shared prefs from Instant app to full app

I know we can transfer the data from instant app to the full app using the Storage api of Google Instant as mentioned here. For devices running OS version less than Oreo, I am trying to read the data as follows: public void getInstantAppData(final…
Ezio
  • 2,837
  • 2
  • 29
  • 45
3
votes
0 answers

error 736569013 uploading instant app

Im trying to upload my instant app to the play store but Im getting this error: An unexpected error occurred. Please try again later. (736569013) I have the installed app in beta v1.0.3 like the instant app. Is it necessary to upload an app signing…
Pablo Cegarra
  • 20,955
  • 12
  • 92
  • 110
3
votes
1 answer

IllegalStateException: Expected configuration ':module:debugFeatureCompileClasspath' to contain exactly one file, however, it contains 2 files

I am working with multi feature android application with instant app and wear app.Here i am able to successfully run my application but getting following error during building APK or rebuild projects. java.lang.IllegalStateException: Expected…
Devganiya Hitesh
  • 1,207
  • 2
  • 17
  • 31
3
votes
1 answer

Firebase build error for multiple build variants on Android Instant App

I am adding Firebase to an existing app with 3 buildTypes (debug, staging and release). There's also 2 flavors (live and mock), but I am enabling mock only for debug builds: android.variantFilter { variant -> if…
BadCode
  • 259
  • 3
  • 12
3
votes
1 answer

Your Instant App APKs have version code 'X' which is already in use

I have an instant app running in production which has a version code of 1 and a version name of 1.0: And now I wanted to upload a newer version of the instant app APKs, but I was held off due to this error that the Google Play Console prompts…
Mohammed Aouf Zouag
  • 17,042
  • 4
  • 41
  • 67
3
votes
1 answer

How to download feature modules in an Android app?

Now that instant apps are a thing (and a great thing, in my opinion), I was wondering if there is a way to actually being able to download certain parts of your app (modules) in order to reduce the initial size of the APK. For example, in my app I…
Jorge
  • 285
  • 2
  • 10
3
votes
0 answers

Can an instant app use an internally accessible content provider?

The Instant Android documentation says that the following features are unsupported for instant apps: Externally accessible content providers Access to content providers from other applications I am currently refactoring an Android app so that it…
3
votes
1 answer

Should I have multiple Instant Apps for an Android App to avoid 4 MB limit?

I have an Instant App with multiple features, with 1 deeplink entry point per feature (features are independent of each other, except base-feature which is consumed by all features). The generated instant app build has 1 APK for base-feature and 1…
dev
  • 11,071
  • 22
  • 74
  • 122
3
votes
1 answer

Android Instant App: showInstallPrompt's postInstallIntent does nothing?

The app in the play store currently is configured to handle https://www.example.com/hello/in an intent filter to launch an activity and showInstallPrompt(...) is supposed to launch the activity once installation of the app is…
mco
  • 1,809
  • 15
  • 31
3
votes
3 answers

Use of Configuration APKs while still targeting pre lollipop devices

When developing for Instant Apps the use of Configuration APKs (https://developer.android.com/topic/instant-apps/guides/config-splits.html) offers useful option for cutting down on APK size. However it looks like they are only supported when using…
John O'Reilly
  • 10,000
  • 4
  • 41
  • 63
3
votes
1 answer

Android InstantApp fails to open Camera

When I launch my android app in InstantApp mode, it fails to open camera even after granting relevant Camera permission. I am creating Android Instant App where a user can capture an image and upload on the server. I am using Camera2 API. InstantApp…
3
votes
2 answers

When publish Instant App:Invalid target sandbox version

I try to publish the Android Instant App via Google Play. I might following problem I try to solve this problem by adding the attribute android:targetSandboxVersion = "2", still not work. In general, the problem has these…
csytang
  • 119
  • 3
  • 10
3
votes
0 answers

I/O Error while using SQLite with android instant apps

I am using SQLite in base feature to delete a table MyApplication.getDatabase().delete(TABLE_NAME, null, null) It crashes the application by throwing error: android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1546) Is SQLite…
Sunil Kumar
  • 1,631
  • 2
  • 19
  • 33