询问要从chrome:// apps访问的PWA功能

时间:2018-12-28 11:18:33

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

要求通过chrome:// apps访问PWA功能

我注意到可以使用菜单栏安装某些PWA网站,如下图所示。并且这些应用直接显示在chrome:// apps中 我的PWA没有显示该选项。为什么???

PS:我在灯塔上通过了所有正常的PWA标准和用户参与度检查...

一些解释此功能的示例网站为:

enter image description here

1 个答案:

答案 0 :(得分:0)

对我来说,它缺少视口... 现在解决了。 现在是我的标题:-

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"
    defaultConfig {
        applicationId "com.myapplicationpck"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 44
        versionName "4.9"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }

    sourceSets {
        main.jni.srcDirs = []
        main.jniLibs.srcDirs = ['libs']
    }

    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/ASL2.0'
        exclude 'VERSION.txt'

    }

}

android {
    useLibrary 'org.apache.http.legacy'
}


repositories {
    mavenCentral()
    maven {
        url "https://jitpack.io"
    }
    maven {
        url 'https://maven.google.com'
    }

}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile files('libs/android-viewbadger.jar')
    compile project(':libraryMobilePaymentSDK')
    compile('com.jakewharton:butterknife:8.6.0') {
        exclude module: 'support-compat'
    }
    compile 'xml-security:xmlsec:1.3.0'
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.google.firebase:firebase-messaging:10.0.1'
    compile 'com.google.firebase:firebase-core:10.0.1'
    compile 'com.facebook.android:facebook-android-sdk:4.0.0'
    compile 'com.github.aakira:expandable-layout:1.4.2@aar'
    compile 'com.android.support:cardview-v7:24.2.1'
    compile 'com.mcxiaoke.volley:library-aar:1.0.0'
    compile 'com.google.android.gms:play-services:10.0.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.android.support:recyclerview-v7:24.2.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'org.apache.httpcomponents:httpcore:4.4.1'
    compile 'org.apache.httpcomponents:httpclient:4.5'
    compile 'com.android.support:multidex:1.0.1'
    compile 'rongi.rotate-layout:rotate-layout:2.0.0'
    compile 'com.roomorama:caldroid:3.0.1'
    compile 'com.google.guava:guava:18.0'
    compile 'org.jsoup:jsoup:1.9.1'
    compile 'com.android.support.test.espresso:espresso-core:2.2.2'
    compile 'gun0912.ted:tedpermission:1.0.3'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.intuit.sdp:sdp-android:1.0.3'
    compile 'com.github.adhishlal:gifloader:1.1'
    compile('com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.2') {
        exclude group: 'com.google.zxing'
    }
    compile 'com.github.javiersantos:BottomDialogs:1.2.1'
    testCompile 'junit:junit:4.12'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'

// new added jar files

    compile files('libs/simple-xml-2.7.1.jar')
    compile files('libs/mpaysdk_release_v.1.0.4.jar')
    compile files('libs/jackson-core-asl-1.9.13.jar')
    compile files('libs/jackson-mapper-asl-1.9.13.jar')
    compile files('libs/bcprov-ext-jdk15on-154.jar')
    compile files('libs/commons-io-2.4.jar')
    compile files('libs/commons-lang-2.3.jar')
    compile files('libs/core-2.3.0.jar')
    compile files('libs/meSdk-3.6.4-SNAPSHOT7.jar')
    compile files('libs/rsadukpt.jar')


}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.jakewharton.butterknife'