Bug 34552 - Fix background fetch support in mtouch w/Xcode 7
Summary: Fix background fetch support in mtouch w/Xcode 7
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 9.0 (iOS9)
Hardware: PC Mac OS
: --- normal
Target Milestone: C6SR1
Assignee: Rolf Bjarne Kvinge [MSFT]
: 34328 ()
Depends on:
Reported: 2015-10-05 04:11 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2016-04-13 11:51 UTC (History)
15 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 Rolf Bjarne Kvinge [MSFT] 2015-10-05 04:11:21 UTC
See also: https://forums.xamarin.com/discussion/comment/156500#Comment_156500
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-10-07 08:00:34 UTC
*** Bug 34328 has been marked as a duplicate of this bug. ***
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-11-25 13:08:33 UTC

maccore/master: 06f71630578505b2a525c13dcb84a95c016295c4
Comment 4 Parmendra Kumar 2015-11-30 15:36:17 UTC
I have checked this issue and its working fine. 

Screencast: http://www.screencast.com/t/2f7Yd5tJ0

Environment info: https://gist.github.com/Parmendrak/ba2ef53282883c383751
Comment 5 William Grand 2015-11-30 16:52:18 UTC
@Parmendra, according to your Environment info, it looks like you are on Xamarin Studio 5.11 / Xamarin.iOS  As of Nov. 30, 2015, the Alpha channel only provides 5.10.1 / Xamarin.iOS and does not appear to be fixed.

This has been broken for nearly 3 months now.  Will this bug be fixed any time soon?  This is a very essential feature!
Comment 6 Rolf Bjarne Kvinge [MSFT] 2015-11-30 16:56:10 UTC
@William, the bug is fixed (I fixed it last week), but it takes a while until it reaches a public channel. Unfortunately at this moment we don't have any dates when it will become public either.
Comment 7 William Grand 2015-12-02 20:45:52 UTC
Is there a workaround for now?
Comment 8 Igor Nabokov 2015-12-02 20:50:45 UTC
Is it possible to merge this fix into XS 5.10 / X.iOS 9.2? 
We need it very much to test background fetch in our app
Comment 9 Rolf Bjarne Kvinge [MSFT] 2015-12-03 09:23:49 UTC
@Igor, the intention is to get it into a XI 9.2 service release.
Comment 10 Igor Nabokov 2015-12-03 12:15:51 UTC
It would be great. But when? May be faster in alpha channel?
Comment 11 Rolf Bjarne Kvinge [MSFT] 2015-12-03 13:28:13 UTC
We don't have a time yet, but it will show up in alpha first.
Comment 13 Jayden Spring 2015-12-08 11:49:06 UTC
Any news as to when it will show up in Alpha as this is a rather BIG setback for applications that rely on background fetch not being able to implement new features from iOS 9.
Comment 14 canab 2015-12-08 16:33:04 UTC
Workaround: launch it from xCode:

1. Run debug session in XS
2. Open any project in xCode (I used 7.1.1)
3. Attach debugger to running process (Menu->Debug->Attach To Process). It is easy to find it by application name.
4. Wait for xCode debug connection is ready
5. Now it is possible select Menu->Debug->Simulate Background Fetch
Comment 15 Igor Nabokov 2015-12-08 19:00:10 UTC
It's work! Thanks
Comment 16 canab 2015-12-08 20:36:04 UTC
And I also think that such kind of fixes should be delivered to customers as hotfix in the nearest update.
To many times we see answers like "we fixed but we don't have any idea when the fixed version will be published".
Comment 17 Jayden Spring 2015-12-09 11:29:32 UTC
@canab, doesn't seem to work for me - I am correct in assuming that in XC we are attaching to the Xamarin Studio process?
Comment 18 canab 2015-12-09 11:34:12 UTC
@Jayden Spring: No, I attached xCode to the process of developed iOS Application which is running in a simulator.
Comment 19 Jayden Spring 2015-12-09 14:32:06 UTC
Meant to the Process not XS, apologies. However even attaching to the process itself I am getting in the device log the following when triggering a BG refresh:
 - Tried to send event "BackgroundContentFetching" to a process that has no bundle ID
Comment 20 Torleif Sandnes 2016-04-13 09:58:32 UTC
Background transfer works for me in the current alpha channel:

Xamarin studio 6.0 build 4968
Xamarin ios
XCode 7.3
Comment 21 Boris Spinner 2016-04-13 11:51:14 UTC
Good ol' "same day support". :D