我已将我的 Web 应用程序构建为渐进式 Web 应用程序 (PWA)。一切都很好,除了当我单击输入在 pwa 中输入内容时,键盘隐藏了固定在底部位置的元素。在 android 上使用 chrome 查看网站时,这不是问题。
我尝试使用连接到手机的开发工具对此进行调试,但键盘没有出现。
有谁知道我能做些什么来解决这个问题?
出现此问题的要素之一:
.scanner .text-input-btn {
position: fixed!important;
bottom: 18vh;
left: 50vw;
margin-left: -28px;
}
Run Code Online (Sandbox Code Playgroud)
我认为这可能是 google chrome 的 PWA 启动器中的一个错误,我认为 webview 仍然是设备高度的 100% i/o 100% 减去虚拟 Android 键盘的高度。
html android google-chrome android-softkeyboard progressive-web-apps
我正在尝试使用 swagger zircote 创建 swagger ui json。对于我的应用程序,我使用 JWT,我的 json 中需要以下 swagger 代码:
"securityDefinitions": {
"Bearer": {
"in": "header",
"type": "accessToken",
"name": "Authorization"
}
},
Run Code Online (Sandbox Code Playgroud)
但我不知道如何使用 swaggers zircote 创建该代码。我试过以下代码:
* @SWG\Swagger(
* schemes={"https"},
* @SWG\SecurityDefinitions(
* bearer={
* type="apiKey",
* name="Authorization",
* in="header"
* }
* ),
Run Code Online (Sandbox Code Playgroud)
但这会导致以下错误:
第 2 行 .\index.php 中的注释“@Swagger\Annotations\SecurityDefinitions”不存在,或者无法自动加载。
有人可以帮助我,我找不到任何关于此的好的文档,也许是特定的,但我希望有人可以帮助我。
谢谢!
也在 github 上发布了这个... https://github.com/zircote/swagger-php/issues/366