ionic-team / ionic-team/capacitor-keyboard

bug: WKWebView is not resized properly after the native Share modal has been closed

Open
#12 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3
Forks
21
PR merge metrics
No merged PRs in 30d

Description

## Bug Report

### Plugin(s)

capacitor/share v1.1.0

### Capacitor Version

```
💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌
```

### Platform(s)

iOS, confirmed on hardware iPhone XR and iPhone 12 Pro. iOS Simulator does not replicate.

### Current Behavior

Using the Share sheet functionality, then calling for a share to the Messages app causes the app view to resize. After completing or cancelling the share, the app view does not return to its original size/origin.

### Expected Behavior

After completing or cancelling the share, the app view should return to its original size/origin.

### Code Reproduction

https://github.com/ChristopherTotty/capacitor-share-replication

### Other Technical Details

Unsure on replication as the device will sometimes work but then after a power cycle the issue will present again.

### Additional Context

See:
https://github.com/ionic-team/capacitor/issues/2979
https://github.com/ionic-team/capacitor/issues/2955

https://user-images.githubusercontent.com/4401033/155213687-cf6355df-9c87-4d42-9626-254106d7269a.mov

Contributor guide

Open the contributing guide

Research direction

Start with the linked reproduction repository and compare the behavior on the physical iPhone models noted in the report, since the simulator does not reproduce it. Read the related Capacitor issues 2979 and 2955, then verify that completing or cancelling the native Messages share restores the WKWebView's original size and origin.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.