Bug 37859 - Page.DisplayActionSheet delay before displaying on iOS devices
Summary: Page.DisplayActionSheet delay before displaying on iOS devices
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.5
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-21 02:18 UTC by Lionel Ong
Modified: 2017-07-13 13:02 UTC (History)
13 users (show)

Tags: ios, ipad3, actionsheet, modal, performance, ac
Is this bug a regression?: ---
Last known good build:


Attachments
slow display of action sheet on iOS (13.28 KB, application/x-gzip)
2016-01-21 02:18 UTC, Lionel Ong
Details
Video (1.49 MB, video/quicktime)
2016-01-22 03:22 UTC, Cody Beyer (MSFT)
Details
screen recordings of tests on iPad 3 (1.72 MB, application/x-zip-compressed)
2017-06-21 03:06 UTC, David Ortinau [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 37859 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Lionel Ong 2016-01-21 02:18:08 UTC
Created attachment 14649 [details]
slow display of action sheet on iOS

Issue: Page#DisplayActionSheet delay before displaying on iOS devices

On iOS when I call DisplayActionSheet on a page, there is a noticeable delay before the ActionSheet is displayed. This does not happen on Android.

Side-affects:
During this delay, 
- it is possible for a user to tap again, causing a not yet rendered item in the action sheet to be selected without the user knowing.
- it is possible to dismiss the action sheet

Attached Sample app:
Tap on the label to display the action sheet. You will notice that you can do many other actions before the action sheet gets rendered. This is most noticeable on an actual iOS device.
Comment 1 Stephane Delcroix 2016-01-21 15:42:45 UTC
I see no noticeable delay. The animation starts at the time I tap the label. There is a delay for the animation to complete, but that's normal for an animation.

I failed to reproduce any of your side effects. Could you please give us more info on the device you're running on, the OS version, and maybe send a video of what's happening ?
Comment 2 Cody Beyer (MSFT) 2016-01-22 03:22:13 UTC
Video attached

Device is A1432 iPad mini running iOS 9.2
Comment 3 Cody Beyer (MSFT) 2016-01-22 03:22:42 UTC
Created attachment 14666 [details]
Video
Comment 6 E.Z. Hart [MSFT] 2016-12-21 23:13:19 UTC
The repro project is using XF 1.3.5; are you still observing this behavior on newer versions (current version is 2.3.3)?
Comment 8 Samantha Houts [MSFT] 2017-06-19 21:11:11 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!
Comment 9 Lionel Ong 2017-06-19 23:20:12 UTC
@samantha.houts
Wait. So I reported the bug, it was assigned to E.Z. Hart for more info, and then it was dumped because a Xamarin dev did not do any work on it?
Comment 10 sluehr 2017-06-19 23:22:53 UTC
We still see this issue in XF 2.3.2.
Comment 11 Samantha Houts [MSFT] 2017-06-19 23:31:01 UTC
We made some improvements to ActionSheet in version 2.3.4. Are you able to update your project to see if this resolves your issue?

Thank you!
Comment 12 sluehr 2017-06-19 23:41:12 UTC
2.3.2 is the latest we can use at the moment. It will be a while before we have the opportunity to upgrade. Why not use the demo project we provided to try it out yourselves?
Comment 13 Samantha Houts [MSFT] 2017-06-19 23:54:26 UTC
I did test the project without updating it, and I was unable to see any delay. It loads nearly immediately, and I am unable to tap anything else before the ActionSheet displays.
Comment 14 Lionel Ong 2017-06-20 00:41:31 UTC
I believe this might be the case if you are using current iOS devices. We can consistently replicate this using an iPad 3.

Furthermore, have you tried this after updating to the latest Xamarin Forms?
Comment 15 Lionel Ong 2017-06-20 00:42:23 UTC
By the way, the video attached shows the issue. I don't see why you are saying it doesn't happen without updating.
Comment 16 David Ortinau [MSFT] 2017-06-21 03:05:50 UTC
I did various tests today on iPad 3 running iOS 9.3.5 (I believe this is the latest that will install on it). Every app I tried runs slow on it, even from Apple.

I compared the sample app using 2.3.4, 2.3.5-pre, and 2.3.6-nightly release builds. There is a delay, but it isn't  as drastic as the video Cody provided. I compared the speed of tapping demonstrated and I saw the modal before the second tap. Just to explain what I saw. I did a screen recording of each and will upload those.

I am confirming this issue to see if there's possibly anything we can do to improve the speed.
Comment 17 David Ortinau [MSFT] 2017-06-21 03:06:32 UTC
Created attachment 23024 [details]
screen recordings of tests on iPad 3