# WebView 中的键盘覆盖在回复上方

**URL:** <https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620>\
**Category:** Development\
**Created:** [2019年四月6日 07:06 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620 "2019-04-06T07:06:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanzo1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@Hanzo1](https://meta.discourse.org/u/Hanzo1)\
**Post date:** [2019年四月6日 07:06 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/1 "2019-04-06T07:06:06Z")

</div>

This is the only other remotely relevant thread I’ve found: [https://meta.discourse.org/t/mobile-landscape-keyboard-hiding-input-text/98809/2](https://meta.discourse.org/t/mobile-landscape-keyboard-hiding-input-text/98809/2)

Perhaps it is easier to explain and then attach pics.

Basically, I am wanting to make an app for my forum, using a webview. However, within the webview, the keyboard goes right over the “Reply” text box.

In a normal Chrome or Internet browser on my S8, it works as intended. Pics related.

Overlaying (keyboard is completely covering text box):

 ![](https://global.discourse-cdn.com/meta/original/3X/4/6/46d5c5c01e852ca2e5eefbf31321e65815b2a6ff.jpeg)

 ![](https://global.discourse-cdn.com/meta/original/3X/9/2/9205d4fdbd847770c67d82a4e42206eecf8d2c7a.jpeg)

* * *

Working as intended:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/9/b92236f57a540eea4c843faccfdecf1fe27540bc.jpeg)

---

<div class="post-metadata">

**Author:** ![Hanzo1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@Hanzo1](https://meta.discourse.org/u/Hanzo1)\
**Post date:** [2019年四月6日 10:56 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/2 "2019-04-06T10:56:33Z")

</div>

Update: It seems as though any sort of **FULLSCREEN** flag in Android completely breaks the Reply system in Discourse, making it impossible to hide the navigation bar or status bar without breaking the “Reply” within a forum.

It is possible, but the above result will occur, when the keyboard goes on top of the reply box.

Anyone know how to mend? This is a bit annoying for UX.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2019年四月6日 14:08 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/3 "2019-04-06T14:08:29Z")

</div>

Why not use a PWA rather than making an app? You’re reinventing the wheel here.

There’s already a single site app available for use which supports notifications but this really shouldn’t be necessary with PWAs now working fairly well.

---

<div class="post-metadata">

**Author:** ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)\
**Post date:** [2019年四月6日 14:31 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/4 "2019-04-06T14:31:20Z")

</div>

Making a webview app and listing it on Google Play gives you enormous chances of people reaching you. Nowadays, any online business should not leave an opportunity to be in Google Play or App Store.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2019年四月6日 16:59 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/5 "2019-04-06T16:59:04Z")

</div>

There are far too many apps on the app store for that to pay off at this point.

---

<div class="post-metadata">

**Author:** ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)\
**Post date:** [2019年四月6日 17:23 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/6 "2019-04-06T17:23:45Z")

</div>

There are far too many websites on the internet but we still try 😉

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2019年四月6日 19:26 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/7 "2019-04-06T19:26:08Z")

</div>

Regardless of whether putting an app up in the hopes of discovery is a good strategy (it isn’t) a single-site app already exists:

> [@Whitelisted Discourse app with Push Notifications via OneSignal](https://meta.discourse.org/t/whitelisted-discourse-app-with-push-notifications-via-onesignal/58247):
>
> Following up on the discussion [here](https://meta.discourse.org/t/what-if-i-want-to-white-label-the-discourse-mobile-apps/53063/9), I have successfully set up a fork of the official Discourse app that can send push notifications via the OneSignal API. There are two parts to this: [discourse-onesignal](https://github.com/pmusaraj/discourse-onesignal/) - a Discourse plugin that sends Push Notifications to OneSignal’s REST API and a [Discourse Mobile Single Site App](https://github.com/pmusaraj/discourse-mobile-single-site-app) built similarly to the official Discourse Mobile app (using React Native), but using OneSignal for notifications and a simplified interface to suit the needs of a single app. I…

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年四月6日 21:26 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/8 "2019-04-06T21:26:55Z")

</div>

Yes but websites don’t have to be “installed” and require binary updates, protection from malware, crash on every release of a new OS, etc. There is also no meaningful ‘app search’, every page in an app is impossible to find vs. Google.

It’s no contest, really, outside of gaming.

---

<div class="post-metadata">

**Author:** ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)\
**Post date:** [2019年四月6日 21:31 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/9 "2019-04-06T21:31:44Z")

</div>

That’s why we are going for webview instead of native Android app. We wanna take advantage of both the website ranking and the app installation behaviour 😉  
At least, in my industry people want us to bring an app because they are lazy to open the browser and type the url. Moreover, telling each individual to use “Add to homescreen” for PWA is also a challenge. Thus app solves the issue here much better 😉

---

<div class="post-metadata">

**Author:** ![Hanzo1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@Hanzo1](https://meta.discourse.org/u/Hanzo1)\
**Post date:** [2019年四月7日 08:09 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/10 "2019-04-07T08:09:58Z")

</div>

Reaching several million, with a Discord base of between 60,000-100,000 MAU with a majority requesting a simple app (doesn’t bother me, effort is worth it to me). Also for my target demographic of 18-25 in the niche I cater to, discovery is massive with apps, even if it’s a simple WebView.

More so interested in my question about why FULLSCREEN triggers the Reply system to break; I think I’m fine on the marketing end. 😉 Didn’t mean to rattle the pram.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年四月7日 09:35 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/11 "2019-04-07T09:35:29Z")

</div>

> [@thegurjyot](#):
>
> they are lazy to open the browser and type the url.

Who _types_ URLs? I tap the first two or three letters, same way I launch apps.. by searching for the app, then launching it.

---

<div class="post-metadata">

**Author:** ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)\
**Post date:** [2019年四月7日 09:49 UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620/12 "2019-04-07T09:49:17Z")

</div>

The thing is that, I too think like you. Even I prefer working on a website since I do not have to install another app to slow down my phone. But, I am a digital marketer and thus far my research has shown me that people have started to prefer apps over websites. That’s why Google is doing everything to better develop PWA.  
Moreover, we search apps which we use once a day or very few times a week. Because we do not place these type of apps to the homescreen.  
But, apps like Social media or PWA from discourse which people visit more often in a day, they place the app on the homescreen where they do not have to search that app. They just open the phone, tap on the app and that’s done.  
Although, I’ll still repeat myself, all of this is for my industry. The research is for my industry, different industries will have different people with different taste.
