Not receiving callbacks in 'Refreshing and Maintaining Your App Using Background Tasks'
jithinmadathil07 opened this issue · 4 comments
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)
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.
This is not working for me even in a small test app. Have a look at the attached sample app.
TestApp.zip
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.
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.