Comments (8)
I've been able to reproduce, so I'm going to reopen.
I've checked with just UIKeyboardIsLocalUserInfoKey
and a combination of UIKeyboardIsLocalUserInfoKey
and UIApplicationStateActive
and they don't fix it and can even cause that the black area is not removed.
from capacitor-plugins.
Are there any news?
from capacitor-plugins.
Thanks for the update, not sure if it fixed the problem though. I copied just the Keyboard.m from the repo and seems to still happen. The if
conditions you added aren't running while it's in the background, apparently the keyboard hide event from the other app like Messages happens after the Capacitor app becomes active, so UIApplicationStateActive
is the state at that point.
I think this is the condition to check for:
if (UIKeyboardIsLocalUserInfoKey.boolValue == true) {
...
}
https://developer.apple.com/documentation/uikit/uiresponder/1621603-keyboardislocaluserinfokey
It appears to work, at least on my old iPhone X.
from capacitor-plugins.
I first tried with UIKeyboardIsLocalUserInfoKey and it was returning true sometimes, but my app wasn't showing a keyboard, so I don't think that value it's trustworthy. Checking for UIApplicationStateActive
worked fine for me when switching from Twitter app, didn't try with Messages app, will try again.
from capacitor-plugins.
Yeah I did see the app state method work sometimes also, and I might have noticed some unreliability with the keyboardIsLocal option... perhaps it would be a good idea to check that both are true.
from capacitor-plugins.
I think part of the reason it's happening specifically with the swipe gesture on iPhone X is that the app activate and keyboard close event happen almost at the same time with that gesture, maybe either condition could happen first and maybe that is where the unreliability comes from.
from capacitor-plugins.
Thanks, sorry for the trouble! Not sure why Apple thought it was a good idea to let apps know about other apps keyboards!
from capacitor-plugins.
@jcesarmobile I have this issue when using the in app browser for social logins, the keyboard will appear and disappear ad the browser closes. However after the black space is left and does not resize.
Is there a method I can use to resize the app again after this?
from capacitor-plugins.
Related Issues (20)
- Please provide marker rotation in google maps plugin HOT 2
- [splash-screen] Make docs usable for iOS app HOT 2
- Cannot select a printer from the Share dialogue box HOT 1
- bug(@capacitor/share): FATAL EXCEPTION java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tvoydnevnik/com.tvoydnevnik.MainActivity}: java.lang.SecurityException: com.tvoydnevnik: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts HOT 2
- Add Capacitor Webview HOT 2
- Add map events to be handled at client side HOT 2
- Complience with Apples Required Reason API HOT 18
- google.maps.Marker is deprecated HOT 1
- [Geolocation / Android] The GPS position is only updated every 5 seconds when using "watchPosition" function on Android HOT 1
- [Bug]: @capacitor/camera - Console (F12) error (undefined) clicking on the camera icon when still loading the camera or not alowing the permission yet. HOT 3
- [Feature] Deep linking for Chromebook Android (App appUrlOpen)
- @capacitor/share not work in android 14, capacitor 6 HOT 4
- [Bug]: @capacitor/camera - After taking a photo (web), a certain border around the photo is cut away. HOT 4
- [Bug]: @capacitor/camera - After turning the device from landscape to portrait, the wrong modes are used when taking a photo. HOT 3
- feat(@capacitor/device) Request to update device plugin to remove privacy-impacting APIs HOT 1
- @capacitor/browser add a new BROWSER_CLOSED event HOT 1
- [@capacitor/filesystem] Successful Filesystem.requestPermissions prompt never resolves due to missing case in callback HOT 5
- [Feature]: native camera max weight settings
- @capacitor/share not working with capacitor v6 HOT 2
- Filesystem.copy not working con content:/ android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-plugins.