googlearchive / android-instant-apps

Migrated:
https://github.com/android/app-bundle
Apache License 2.0
846 stars 277 forks source link

IsInstantApp is always false #51

Closed grosalex closed 5 years ago

grosalex commented 6 years ago

Hi, InstantApps.isInstantApp(this) always return false even when running instant app. Do you have any idea why?

Regards,

brianchu commented 5 years ago

How do you run it? I run instant app using adb install-multiple -r -t --instantapp and isInstantApp() returns ok. You can also use ia command.

miguelmontemayor commented 5 years ago

How are you deploying the instant app? You may be deploying the installed app, which is why it's always returning false. You can verify you're launching the instant app by the lighting bolt in the corner of the launcher app icon.

There's instructions on how to locally deploy the instant experience from the instant-enabled app bundles in this documentation.

Closing this issue as stale, but feel free to reopen and follow up.