Bug 6356 - MT iPhone apps always terminate on suspend - physical device running IOS 4.2.1
Summary: MT iPhone apps always terminate on suspend - physical device running IOS 4.2.1
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.99.x
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-01 11:56 UTC by Robert Nendel
Modified: 2016-02-17 18:31 UTC (History)
3 users (show)

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


Attachments
Example project (3.52 MB, application/octet-stream)
2012-08-01 12:30 UTC, Robert Nendel
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 NOT_REPRODUCIBLE

Description Robert Nendel 2012-08-01 11:56:32 UTC
This behavior is *not* evident in simulation - it *is* evident when pushing to a physical device (ipod/gen2 running 4.2.1)

Using current version of Monotouch, create a single-view iphone solution and build it as release/iphone, no changes, no modifications, and run  it.  Press the Home button.  Go back to application.  Application re-launches *always* - it terminates on suspend *always*.

Further testing - add a button and a label to the single-viewcontroller's view above, populate the label on touching the button, then press home and then go back to app.

Debugging shows that ResignActivation() is *never* called, instead WillTerminate is always called.

Further testing - explicitly add the UIApplicationExitsOnSuspend key to info.plist, set it to <false/>, perform same sequence as above - app *always* terminates on suspend.

I submitted a request for support on this as it is a roadblock  to my publishing, but received a dismissive response.  I would assume that Xamarin might consider, given the QA track record, that something may have slipped through in any of the multitude of updates and should really check this out, actually duplicate it (not simply do a web search and dismiss the submitter).
Comment 1 Robert Nendel 2012-08-01 12:30:37 UTC
Created attachment 2285 [details]
Example project

Newly created project with a button and label that *always* termiantes on suspend on physical ipod gen 2 running 4.2.1.
Comment 2 Alex Anikin 2012-08-06 08:18:05 UTC
I have 5.3.5 version of Monotouch and iPad 5.1.1. 
This is reproducing for me too. Application always terminates on Suspend. Fix this, please.
Comment 3 Alex Anikin 2012-08-06 08:26:15 UTC
UIDevice.CurrentDevice.IsMultitaskingSupported is TRUE.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2012-08-06 13:27:09 UTC
I can't reproduce with MT 5.3.5 and iPad 5.1.1
Comment 5 Rolf Bjarne Kvinge [MSFT] 2016-02-17 18:31:45 UTC
I still can't reproduce this.

If it's still a problem, please get the device log (in Xamarin Studio's menu View -> Pads -> iOS Device log) from a suspension and attach it here (and reopen the bug).