android-instant-apps

Android: Can you add activities to the Instant App module?

假如想象 提交于 2019-11-29 17:20:13
I'm trying to create an Instant App, but wanted to know if I can add an activity to my Instant App module. When creating an Instant App module, the android studio wizard doesn't give you the option to add an activity either and was wondering if it is just supposed to be empty. I've tried adding an activity manually, but ran into some build issues. Before I give up I just wanted to ask if an empty Instant App module is how it's designed to be and only supposed to rely on the base feature/feature modules as a dependency. EDIT: When I try to add an activity to the com.android.instantapp module,

You should have at least one active APK that is mapped to site 'sample.com' via a web 'intent-filter'

老子叫甜甜 提交于 2019-11-29 10:52:08
Trying to upload instant application but getting this error You should have at least one active APK that is mapped to site 'sample.com' via a web 'intent-filter'. <activity android:name=".ui.InstantSplash" android:screenOrientation="portrait" android:theme="@style/splashScreenTheme"> <meta-data android:name="default-url" android:value="https://sample.com/base-app/salt_one" /> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter android:autoVerify="true" tools:targetApi="m"> <action

Opening Google Play in popup (like Vimeo, Wisher, Buzzfeed) - Instant App

旧巷老猫 提交于 2019-11-29 10:51:51
How to open Google Play in popup like Wisher, Buzzfeed, Vimeo? I looked at Google documentation , but there is only about opening by Google Play app ( market:// ) or by a browser ( http:// ). I would like to open inside my instant app in order to install full app like on screens. I think you're looking for showInstallPrompt . TL;DR: InstantApps.showInstallPrompt(activity, postInstallIntent, Constants.INSTALL_INSTANT_APP_REQUEST_CODE, referrerString); At Vimeo we're using Branch for our web -> mobile app install as well as our instant app -> mobile app install (since it gives some additional

How to access and pass parameters to the modules of an Android Instant App

好久不见. 提交于 2019-11-29 06:34:10
With normal installed apps it's possible to use the technique of Deep Linking in order to not only open a specific application from an URL but also to redirect it to a specific section/function such as a specific Facebook post or specific coordinates on a map. Since I've read that with Instant Apps this won't be possible because links already point to the specific module to download and run, how would it be possible to access not only the said module but also pass it some parameters? For example: This is the link from which the view-only module of my map application will be downloaded: " www

Digital Asset Link verified by Android Studio, but not pass in Google Play Console

筅森魡賤 提交于 2019-11-28 14:23:55
I try to publish my Android instant app to Google Play; I link the app, which is named helloinstantapp.instantapp.examples.chrisyttang.org to the domain https://csytang.github.io . It has been verified by Android Studio as you can see in the following image; However, when I try to publish my app into Google Play with Google Play Console, I get the error that "the site csytang.github.io has not been linked through the DAL protocol to your app." Why this happen? Did you by any chance enable Google Play App Signing ? If yes, then you need to use the fingerprint provided by the Play Console,

Android Instant App Play Store Errors

怎甘沉沦 提交于 2019-11-28 13:05:01
Whenever I upload my base and feature APKs to Play Store I got these errors : You must provide a default URL for your Instant App APKs. Learn More Your site 'www.example.com' has not been linked through the Digital Assets Link protocol to your app. Please link your site through the Digital Assets Link protocol to your app. You should have at least one active APK that is mapped to site 'www.example.com' via a web 'intent-filter'. And here is my manifest file : ( EDITED ) <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ex.example.feature.productdetail"> <uses

Instant App - Digital Asset Links Protocol

余生颓废 提交于 2019-11-28 10:50:33
Whenever I tried to upload my instant app apks to Play store, it gives the following error : Your site 'www.mywebsitename.com' has not been linked through the Digital Assets Link protocol to your app. Please link your site through the Digital Assets Link protocol to your app. However, whenever I execute https://developers.google.com/digital-asset-links/tools/generator , it gives success for associating with my app and web site. Any idea why am I getting this error? What may cause this? Thanks for help in advance. user3813078 Please check whether Google Play App Signing is enable on Google Play

Android Studio 3.0 RC2 - “Default Activity not found” for multi module project

本小妞迷上赌 提交于 2019-11-28 10:29:55
问题 I have a multi-module project (supporting instant apps and installed app). When using AS 3.0 RC1 and RC2 I'm no longer able to launch app....getting Default Activity not found I have a number of product flavors and issue could be related to fact that appropriate LAUNCHER activity is declared in AndroidManifest.xml for each flavor (I have chosen one of those flavors in "Build Variants" section). This has been working fine up to AS 3.0 Beta 7. 回答1: Not sure how I didn't spot this but when

“minSdkVersion” for InstantApp support?

自古美人都是妖i 提交于 2019-11-28 09:51:43
问题 To enable InstantApp support, should I need to change " minSdkVersion " of my App ? I'm using "minSdkVersion=15". 回答1: There's no required minimum. 15 is fine. But FYI, your app won't run on 15. The Instant Apps runtime itself isn't compatible that far back. At the moment, that only goes back to 23 (but we're working on that). Source: I'm on the Instant Apps team. I checked the publishing validation code to be sure. For the record, where Instant Apps is supported, minSdkVersion is respected.

Instant app won't start directly, shows a screen first

旧城冷巷雨未停 提交于 2019-11-28 04:41:15
问题 I have successfully published a (very simple) Instant App linked to my personal website. When I click on my website's link, I was expecting the app to start directly, but instead, I first see a screen with 2 buttons: "Open app" and "Open in browser": Why? Other instant apps that I tried do not show this screen and open the app directly (the desired behavior). 回答1: We call this screen the "speed bump". It's a security feature. You're right in noticing that it doesn't always trigger. But there