Bug 43812 - Rich iOS10-notifications render slowly during first run
Summary: Rich iOS10-notifications render slowly during first run
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.99 (iOS 10 previews)
Hardware: PC Mac OS
: Normal normal
Target Milestone: Xcode8 (iOS10)
Assignee: Alex Soto [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-08-28 09:03 UTC by Konstantin
Modified: 2016-09-02 17:31 UTC (History)
6 users (show)

Tags: C8SR1
Is this bug a regression?: No
Last known good build:


Attachments
Video-recording of bug's behavior (1.04 MB, video/quicktime)
2016-08-28 09:03 UTC, Konstantin
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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Konstantin 2016-08-28 09:03:44 UTC
Created attachment 17227 [details]
Video-recording of bug's behavior

See attached video: 
It takes few seconds to render actual notification UI for the first time (after deploy to phone). Second notification renders fairly fast.
With Swift - there's no difference between first and second notification.

Is there any way to speed-up first load?

Thanks,
Konstantin
Comment 1 Alex Soto [MSFT] 2016-08-30 04:10:57 UTC
Hello Konstantin!

Please include your full build logs, crash reports (if any), 
test case (to reproduce) and all version informations.

The easiest way to get exact version information is to use the 
"Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" 
button and copy/paste the version informations (you can use the 
"Copy Information" button).
Comment 2 Konstantin 2016-08-30 20:07:21 UTC
Hi Alex,

Xamarin Studio: 6.1 (5365) - see full installation info below / iPhone 6s (Beta 5);

I've also uploaded my test app into the DropBox:
https://www.dropbox.com/s/ueasqg8aha0tesn/TestApp.zip?dl=0
Will free to check it out.




=== Xamarin Studio Community ===

Version 6.1 (build 5365)
Installation UUID: fb0e4a2c-12e9-4806-bfb9-5183f291bd0e
Runtime:
	Mono 4.6.0 (mono-4.6.0-branch/23c6a4d) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406000165

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.0 (11228.2)
Build 8S193k

=== Xamarin.iOS ===

Version: 9.99.4.23 (Xamarin Studio Community)
Hash: f63ecd7
Branch: cycle8
Build date: 2016-08-23 14:45:42-0400

=== Xamarin.Android ===

Not Installed

=== Xamarin Android Player ===

Not Installed

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 601005365
Git revision: 4fb2e8b3f2042f3be28b370d01f1c8057e993e51
Build date: 2016-08-23 08:54:41-04
Xamarin addins: 60c0f9d8f0eb210499e1f8c6daf4972c10f4663f
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.11.6
Darwin Konstantins-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0
    Thu Jun 23 18:25:34 PDT 2016
    root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
Comment 3 Alex Soto [MSFT] 2016-09-02 17:31:03 UTC
Hello Konstantin

When you run debug builds, the app is optimized to provide a great debugging experience which results on greater load times to memory (first run), subsequent ones are from code already in memory which is why it shows up faster. In the other hand release builds are very optimized and your app only contains what you actually use and load times are reduced significantly.

The other thing that you must have in mind is that extensions are resource limited by the operative system so they do not have the same resources available as a main app in foreground.

The good news are that if you run your app in release mode you should get great load speeds as shown in the following video.

http://www.screencast.com/t/6pXWsmBCltM

Cheers!