-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: iOS major enhancements BGAppRefreshTask, BGProcessingTask, beg…
…inBackgroundTask, printScheduledTasks (#511) * fix:Update Workmanager iOS because no callback in Background on iOS real device, added 30sec BGAppRefresh, Updated example #396 * added permissionhandler an requests for iOS added alert and MaterialApp to workmanager when no iOS permissions activated * fixed errormessage on xcode * feat:Added check for background refresh permissions #441 * text to display task event dates (show prefs) added. * fixed workmanager iOS Part fixed BGProcessing fixed inputdata in callback on task clarified timings * fixed warning dead code and ! check * improved Task description (hints) * Update README.md * Update README.md * Update README.md * Format readme iOS examples * Improve code documentation * Cleanups in SwiftWorkmanagerPlugin.swift * Use logInfo instead of prints and NSLog * Log unnecessary logs only in debug mode * Remove unnecessary logs * Remove isInitalized flag in SwiftWorkmanagerPlugin which was not set to true anywhere * * iOS, Rename registeriOSBackgroundProcessingTask to a generic name registerProcessingTask to be consistent with rest of the plugin and possible future Android implementation * iOS, Rename wrongly named startOnOffTask to startOneOffTask * * Cleanup code to make it more close to original plugin so that change size is reduced and it will make it easy to review * Change new task identifier to be consistent with existing ones e.g. instead of app.workmanager... use be.tramckrijte... * Documentation update * Remove unnecessary logs, comments etc which were added in PRs which were not merged, and cleanup unnecessary code * Revert using a custom log helper OS file to use the plugins existing shared prefs * Bump example flutter sdk to < 4 instead of < 3 * Add task identifiers to iOS AppRefresh and ProcessingTask so that user can define task names instead of using hardcoded names * * iOS AppRefresh task interval should be 15 minutes * Documentation update * Initialize should not auto open App settings if background refresh permission is not assigned. Initialize should return result * Continue work on task identifiers for iOS AppRefresh and ProcessingTask. * Temporarily commented old iOS background fetch * Fix extra commas on iOS * New iOS feature printScheduledTasks to print details of un-executed scheduled tasks. To be used during development/debugging. Format readme to improve readability * iOS Periodic and processing tasks will be immediately scheduled, instead of waiting for App to go to background. Since doing on backgrounding will keep on changing earliest begin date. * Add printScheduledTasks to example app * Format example code * Option to set frequency for iOS periodic tasks in AppDelegate.swift * Add initialDelay support for Workmanager.registerProcessingTask * Remove unnecessary WorkmanagerPlugin.registerBGProcessingTask calls from AppDelegate.swift * Cleanup unused params from Workmanager.registerProcessingTask * Update readme and iOS setup as per new iOS developments * Create migration steps for iOS Workmanager.registerOneOffTask to Workmanager.registerProcessingTask * Update iOS docs * TODO for cleanups later --------- Co-authored-by: Lars Huth <[email protected]> Co-authored-by: xunreal75 <[email protected]> Co-authored-by: Ioseph Magno <[email protected]> Co-authored-by: delfme <[email protected]>
- Loading branch information
1 parent
370df0c
commit b783000
Showing
15 changed files
with
922 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
b783000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this commit be pulled into main and committed to pub.dev soon? It appears multiple bugs have been issued which this commit resolves, and users are targeting it instead of the pub.dev as a workaround.
See: #551
b783000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am also interested on the status here – waiting for it to be proper to start migration to workmanager...