Basically the title. I am trying to implement a local notification to trigger, regardless of internet connection, around 3-5pm if a certain array in the app is not empty to get the user to sync unsaved work with the cloud. I wanted to used the BGAppRefreshTask as I saw it was lightweight and quick for just posting a banner notification but after inspecting it in the console, it looks like it needs internet connection to trigger. Is this the case or am I doing something wrong? Should I be using the BGProcessingTask instead?
around 3-5pm
I don’t think either app refresh or background processing tasks will help you here. Neither of them provide a reliable way to run code at a specific time. I talk more about these limits in iOS Background Execution Limits.
if a certain array in the app is not empty to get the user to sync unsaved work with the cloud.
Where is this array stored? Within your app? If so, you don’t need any background processing to make this work. Rather, each time your app modifies the array, have it schedule (or cancel) a local notification for a time of your choosing.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"