无法在 Quarkus-Omnifaces Extension 中检测到清单

问题描述 投票:0回答:0

我已经在我的 Quarkus + Myfaces 应用程序上配置了 PWAResourceHandler,但是无法检测到 manifest.json。 我调试代码并查看生成文件的清单。但无法识别清单。

Quarkus:2.16.3.Final

Quarkus-Omnifaces:3.14.3

有人可以帮忙吗?

@ApplicationScoped
public class AppHandlerPWA extends WebAppManifest {

@Override
public String getName() {
    return "AgroV ERP";
}

@Override
public String getShortName() {
    return "AGROV";
}

@Override
public Collection<ImageResource> getIcons() {
    return Arrays.asList(
            ImageResource.of("images/pwa/agrov-icon-144x144.png", Size.SIZE_144),
            ImageResource.of("images/pwa/agrov-icon-180x180.png", Size.SIZE_180),
            ImageResource.of("images/pwa/agrov-icon-180x180.png", Size.SIZE_512)
    );
}

@Override
public String getThemeColor() {
    return "#cc9900";
}

@Override
public String getBackgroundColor() {
    return "#ffffff";
}

@Override
public Display getDisplay() {
    return Display.STANDALONE;
}

@Override
public Collection<Category> getCategories() {
    return Arrays.asList(Category.BUSINESS, Category.FINANCE);
}

@Override
public String getOfflineViewId() {
    return "/webapp/public/offline.html";
}

@Override
public Collection<String> getCacheableViewIds() {
    return Arrays.asList(
            "/webapp/public/login.xhtml"
    );
}

@Override
public Collection<RelatedApplication> getRelatedApplications() {
    return Arrays.asList(
            RelatedApplication.of(Platform.PLAY, "https://play.google.com/store/apps/details?id=com.example.app1", "com.example.app1"),
            RelatedApplication.of(Platform.ITUNES, "https://itunes.apple.com/app/example-app1/id123456789")
    );
}

}

quarkus omnifaces
© www.soinside.com 2019 - 2024. All rights reserved.