bug: Inconsistent/breaking 'swipe to go back` transition on iOS native Ionic build
See original GitHub issueBug Report
Ionic version:
[x] 4.4.0
Current behavior:
I discovered inconsistent behavior while using swipeBackEnabled: true
on an iOS native Ionic build.
Video of the issue here: https://streamable.com/1ux20
Things to notice in the video:
- Sometimes, swiping back will cause the animation to trigger twice (seen near the beginning of the video).
- At the 0:06 second mark, the app transitions to the details page but I can no longer swipe back. When I try to swipe nothing happens (you can see the screen sorta go up and down because my swipes aren’t perfectly horizontal).
- You’re able to see the home page beneath the details page when swiping down on the details page which uses
ion-refresher
. - Tapping the back-button in the toolbar doesn’t do anything
- Tapping tabs at the bottom doesn’t do anything either
Expected behavior:
I don’t expect to see doubled animations occasionally and I also don’t expect the app to get “stuck” on a page where I cannot route to a different page or even swipe to go back a page.
Steps to reproduce:
I have only been able to reproduce this on a physical iOS device (but I have reproduced this problem on 2 different Ionic apps, one of my apps is in production with this issue), as I state below this is extremely inconsistent, but I tend to be able to reproduce it more often when I swipe from the very edge of the device from left to right to go back to the home page. Click the “Details page” button to route forward. Do you guys have a suggestion for gesture tracking/recording? That may help debug this issue better so we can pinpoint the exact stroke that breaks things, but I don’t know of such software.
Related code:
Like I said, this is extremely difficult to recreate consistently (typically can get it within the first 50 attempts, but as seen in this video I was able to trigger the problem within 4 attempts, but I have a repo of the demo app you see in the video (ignore the name because I’m using it for another bug submission already):
https://github.com/uncvrd/ion-refresher-bug
Other information:
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.4.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : ios 5.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 6 other plugins)
System:
ios-deploy : 1.9.4
ios-sim : 7.0.0
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
I can confirm that the “swipe to go back” does result in weird behaviours sometimes.
The 2 biggest issues that I noticed:
ion-searchbar
in the header turned transparent (this was fixed by placing it in anion-toolbar
, but the same happens for the “pull down to refresh area”, as shown in this video.I was planning to open up a separate issue for those, but it seems that there are some issues around this feature, so we can summarise them here.
To add to @AndreasGassmann additional iOS swipe bugs, I noticed (and have created a bug request) for the background going transparent after “half-swiping” on
ion-refresher
#18284I’ve also experienced flickering header icons on transitions. Sometimes, after “swiping to go back” and I tap on another element, the icons flicker at the top of the page, then disappear. I then have to tap on an element again before the page transition happens. You can see the issues here:
Video link: https://streamable.com/147x7
My header looks like this: