Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Not receiving callbacks in 'Refreshing and Maintaining Your App Using Background Tasks' #392

Closed
jithinmadathil07 opened this issue Nov 19, 2019 · 4 comments
Labels
Milestone

Comments

@jithinmadathil07
Copy link

Regarding - https://github.com/xamarin/ios-samples/tree/master/ios13/RefreshingAndMaintainingYourAppUsingBackgroundTasks

I have tried to run xamarin 'Refreshing and Maintaining Your App Using Background Tasks' sample on iphone7(iOS 13.2) using VS2019 for mac. But I am not getting any callback for BGAppRefreshTask or BGProcessingTask in background.

I have enabled UIbackground modes in Info.plist(fetch and processing).
Added BGTaskSchedulerPermittedIdentifiers key and uniques task ids to Info.plist
Tried diffrent EarliestBeginDate intervals(5,15,30 minutes).Used local notification to show the callback.

I tried with native swift sample code also.There I was able to receive the callbacks.

So do I need to add anything else for getting callback in xamarin?

Configuration
OS:Catalina 10.15
iphone version:iphone 7(iOS 13.2)

@jithinmadathil07 jithinmadathil07 changed the title Not receiving callbacks in Refreshing and Maintaining Your App Using Background Tasks Not receiving callbacks in 'Refreshing and Maintaining Your App Using Background Tasks' Nov 19, 2019
@chamons chamons added this to the Future milestone Nov 26, 2019
@chamons chamons added the bug label Nov 26, 2019
@chamons
Copy link
Contributor

chamons commented Nov 26, 2019

I believe I have the background tasks firing with this change:

https://github.com/xamarin/ios-samples/pull/393/files

which is noted in the readme instructions as something you need to do.

@sandeep-eroad
Copy link

This is not working for me even in a small test app. Have a look at the attached sample app.
TestApp.zip

@comfr3ak
Copy link

Having a similar problem with the task never firing. Have followed this precisely line for line and regardless of how I treat the iPad, the task will never fire. I have assured all the settings are enabled, Background Refresh is enabled on the device for my app, the info.plist keys are added. Never fires. Running iPad Pro with iOS 14.

@rolfbjarne
Copy link
Member

Microsoft support for Xamarin will end on May 1, 2024 for all Xamarin SDKs. In preparation for this, all issues and PRs in this repository are being closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants