[Bug]: keyboard is hiding the input field on Android

未关闭
#8,108 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
android
领域
mobile-dev

调研方向

从 app-mini mini_app release 中链接的最小复现开始,并验证 issue 中描述的 Android 键盘行为。阅读 Capacitor Keyboard API 文档,然后追踪负责调整 webview 大小的 Android 行为。完成的标准是:在 Android 上输入时,获得焦点的输入框仍保持可见,同时不会回归所述的 iOS 差异。

由索引模型根据 Issue 内容生成。

描述

needs reproduction platform: android
Capacitor Version

Capacitor Version
Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 7.4.2
@capacitor/core: 7.4.2
@capacitor/android: 7.4.2
@capacitor/ios: 7.4.2

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 7.4.2
@capacitor/core: 7.4.2
@capacitor/ios: 7.4.2

[error] Xcode is not installed

Other API Details
npm version: 8.19.4
node version : v20.14.0
Platforms Affected
  • iOS
  • Android
  • Web
Current Behavior

When I type on an input field, the keyboard hides it
See the minimum example in github https://github.com/Toto5931/app-mini/releases/tag/mini_app

Expected Behavior

I would expect the size of the webview to be reduced so that the input stays visible while we are typing

Project Reproduction

https://github.com/Toto5931/app-mini/releases/tag/mini_app

Additional Information

This problem is different from the https://github.com/ionic-team/capacitor/issues/8099 which concerns iOS
I have looked at https://capacitorjs.com/docs/apis/keyboard but the resize option is Only available on iOS.

Image Image
主要语言
TypeScript
星标
17.1k
派生
1.3k
平均合并
1 天 22 小时
30 天内合并 PR
26

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/capacitor 的其他 Issue

查看 ionic-team/capacitor 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。