Post

Replies

Boosts

Views

Activity

Reply to iOS BGTaskScheduler
It is being called under the applicationDidEnterBackground function by scheduleBackgroundTask if it helps: if ([RBFastFlags sharedInstance].enableWidgetDataProtocol) { RBWidgetDataRecentlyPlayedBackgroundTaskModule* WidgetDataTask = [[RBWidgetDataRecentlyPlayedBackgroundTaskModule alloc] init]; if ([WidgetDataTask isWidgetEnabled]) { NSCondition* waitForWidgetDataComplete = [[NSCondition alloc] init]; [WidgetDataTask runBackgroundTaskModuleWithCompletionBlock:^{ [waitForWidgetDataComplete signal]; }]; [waitForWidgetDataComplete waitUntilDate:[NSDate dateWithTimeIntervalSinceNow:25]]; } [self scheduleBackgroundTask]; [WidgetTimelineReloadHelper reloadWidgets]; }
Apr ’25
Reply to iOS BGTaskScheduler
hi! we ended up finding out this was an issue on our flagging system. The register was too early in our app lifecycle and was not being run. Fixing this also resolved this issue. Thank you
Replies
Boosts
Views
Activity
Apr ’25
Reply to iOS BGTaskScheduler
Yea, I have <key>BGTaskSchedulerPermittedIdentifiers</key> <array> <string>com.(group).refreshtask</string> </array>
Replies
Boosts
Views
Activity
Apr ’25
Reply to iOS BGTaskScheduler
BGTaskSchedulerPermittedIdentifiers (grouphere)refreshtask
Replies
Boosts
Views
Activity
Apr ’25
Reply to iOS BGTaskScheduler
It is being called under the applicationDidEnterBackground function by scheduleBackgroundTask if it helps: if ([RBFastFlags sharedInstance].enableWidgetDataProtocol) { RBWidgetDataRecentlyPlayedBackgroundTaskModule* WidgetDataTask = [[RBWidgetDataRecentlyPlayedBackgroundTaskModule alloc] init]; if ([WidgetDataTask isWidgetEnabled]) { NSCondition* waitForWidgetDataComplete = [[NSCondition alloc] init]; [WidgetDataTask runBackgroundTaskModuleWithCompletionBlock:^{ [waitForWidgetDataComplete signal]; }]; [waitForWidgetDataComplete waitUntilDate:[NSDate dateWithTimeIntervalSinceNow:25]]; } [self scheduleBackgroundTask]; [WidgetTimelineReloadHelper reloadWidgets]; }
Replies
Boosts
Views
Activity
Apr ’25