Bug 2661 - UIApplication::BackgroundTaskInvalid is a NSString, UIApplication::BeginBackgroundTask returns an int
Summary: UIApplication::BackgroundTaskInvalid is a NSString, UIApplication::BeginBackg...
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.0
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-12-27 23:43 UTC by Jackson Harper
Modified: 2012-01-02 19:16 UTC (History)
2 users (show)

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

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:

Description Jackson Harper 2011-12-27 23:43:59 UTC
UIBackgroundTaskInvalid is defined in UIApplication.h as:

typedef NSUInteger UIBackgroundTaskIdentifier;
UIKIT_EXTERN const UIBackgroundTaskIdentifier UIBackgroundTaskInvalid  __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);

MonoTouches UIApplication.BeginBackgroundTask returns an int.

MonoTouch has a static define for UIApplication.BackgroundTaskInvalid, which I assume is supposed to correlate to UIBackgroundTaskInvalid, but it is an NSString instead of an NSUInteger or int.

Implementing a trivial backgrounding sample like this: 

Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-01-02 19:16:09 UTC
Fixed (for 5.1.2 and 5.0.5).