I have implemented local database and based on some logics I need to scheduled background task and app refresh on every 4 hours. And on app refresh need to generate local notification to show some reminder information.
I created POC and tested with apple xcode command and it generating notification
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"MyTaskIdentifier"]
but on actual testing I am not getting local notification.
Please let me know if any thing missed or is there any limitation with background schedule job?. (I read the background task scheduler has some complex algorithm to schedule it and system OS decide it to generate, but for me its was not generate single time)
https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler
Any help on this ? Thanks