Android Instant Apps not running on Pixel

2019-01-29 06:26发布

Recently my Pixel started showing the following message:

Development Mode Active -                           
URLs will be routed to Dev Manager in order to launch Instant Apps locally.

Also, in settings -> apps I can see Google play services for Instant apps.
Now, when I tried wish and buzzfeed tasty so that I can run their Instant apps I was taken to their site and not in the Instant app.

I built an Instant app in Android Studio 3.0 Canary 4.
It is working fine on the emulator but when I connected my Pixel running on android 7 it shows the following error -

Side loading instant app failed: Reading bundle timed out.

and when I retry some more times it shows this -

Side loading instant app failed: Failure when trying to read bundle. 
Unable to connect to Google Play Service ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}

A same question has been asked here but in this case the problem is with the emulator not a real device.

CompiledSdkVersion 25
targetSdkVersion 25
buildToolsVersion 25.0.3

Any help would be appreciated and also a list of some already published instant apps I can try.

3条回答
看我几分像从前
2楼-- · 2019-01-29 07:06

Now Instant apps is available in India. You can check by searching buzzfeed tasty in chrome. Attaching screenshot below enter image description here

Or you could visit https://developer.android.com/topic/instant-apps/index.html and click the screenshot on that site. Post clicking website will open. Below that website a popup will show to "open app". Post clicking "open app", instant app will get opened

Note : Turn on instant app in Google menu in Settings in phone before trying above

查看更多
萌系小妹纸
3楼-- · 2019-01-29 07:08

Unfortunately Instant Apps is not yet available in India. That means, Instant Apps features are by default turned off on the real devices, including in development environment. See the list of supported countries here: https://support.google.com/googleplay/android-developer/answer/7381861#production

We are working on this issue and will provide an update in a few weeks. In the mean time, please use emulators for you development.

查看更多
贼婆χ
4楼-- · 2019-01-29 07:10

In your instant App run configuration. Try To enable Instant APP Provision and "Clear Provisioned Devices Cache"

enter image description here

查看更多
登录 后发表回答