twa有assetLinks,但正在通过地址栏打开

时间:2019-07-22 17:08:45

标签: google-chrome google-play progressive-web-apps

我按照官方的方式在Play商店上发布了我的PWA,但无论如何,我仍然有这个网址地址栏。我在https://www.elec-tricks.com/.well-known/assetlinks.json的服务器上(我已经用Google工具测试过)正确的assetlinks.json,这是我的gradle文件:

apply plugin: 'com.android.application'

android {
   compileSdkVersion 28
   defaultConfig {
     applicationId "com.quicksize.elec_tricks"
     minSdkVersion 19
     targetSdkVersion 28
     versionCode 1
     versionName "1.0"
     testInstrumentationRunner 
     "android.support.test.runner.AndroidJUnitRunner"
     manifestPlaceholders = [
     hostName: "www.elec-tricks.com",
     defaultUrl: "https://www.elec-tricks.com",
     launcherName: "Elec-Tricks",
     assetStatements: '[{ "relation": 
     ["delegate_permission/common.handle_all_urls"], ' +
     '"target": {"namespace": "web", "site": "https://www.elec-tricks.com"}}]'
    ]
}
buildTypes {
 release {
  minifyEnabled false
  proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
  sourceCompatibility JavaVersion.VERSION_1_8
  targetCompatibility JavaVersion.VERSION_1_8
 }
}

dependencies {
   implementation fileTree(dir: 'libs', include: ['*.jar'])
   implementation 'com.android.support:appcompat-v7:28.0.0'
   implementation 'com.github.GoogleChrome:custom-tabsclient:a0f7418972'
    testImplementation 'junit:junit:4.12'
   androidTestImplementation'com.android.support.testrunning_man1.0.2'


androidTestImplementation'com.android.support.test.espresso:espresso-core:3.0.2'
 }

我的应用程序已签名并上传到Play商店,但是此地址栏仍然显示,我的操作方式中是否缺少某些内容?

0 个答案:

没有答案