I have an InstantApp in internal test on the Play Store - not published. The instant app downloads and operates fine. The activity presents an Install button which appears to work fine - The Play Store presents its page with an Install button; clicking it downloads 1.25MB and the app's icon appears in the App Screen. The app appears in All Apps as 4.0MB. When executed, it displays the InstantApp, however.
If I sideload the app (AS3.2 Canary 14), a Chooser is displayed with two entries for my app plus Chrome - even after I Uninstalled both the Instant and the Installed. If I choose the bottom of the two, the full app is run fine. The app that appears now in All Apps is 17MB.
If I trigger the app again, there is a Chooser to open one instance (Just Once/Always) or Use a different app (which includes the other instance). If I choose the upper Just Once, the Instant App is run. If I choose the lower, the full is run.
So both the instant and full apps work fine. But how can I get the full app to be downloaded upon Install, instead of only on sideloading? If that is fixed, how do I get the postInstallIntent to execute it? And can I halt the appearance of the InstantApp in the Chooser?
The device is V7.1.1, so this is not the O install problem in 45206096. The URL mappings use pathPattern /i/.*
for https only and the default-urls are domain/i/
.
Here is the code in the onClickListener of the Install Button:
Uri uri = Uri.parse(getPackageName()+".full.TestFull");
Intent postInstallIntent = new Intent(Intent.ACTION_VIEW, uri);
postInstallIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK Intent.FLAG_ACTIVITY_CLEAR_TASK);
boolean promptresult = InstantApps.showInstallPrompt(InstantActivity.this,postInstallIntent, 0, "InstantApp");
promptResult
is true
but the full app is not downloaded and the activity in the Intent is not executed.
P.S. I have tried changing the module from pkg.full to just pkg and not prepending ".full" to the activity in the intent uri to no avail.
TIA for any advice.