flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

[Feature request]: iOS backgroundRefreshStatus

Open absar opened this issue 2 years ago • 1 comments

Is there already an issue requesting this feature?

Please select affected platform(s)

  • [ ] Android
  • [X] iOS
  • [ ] Windows

Use case

On iOS users can disable Background App Refresh permission backgroundRefreshStatus, due to which background tasks cannot run if user has disabled the permission. Background tasks are all types of tasks like Background Fetch, BGAppRefreshTask, BGProcessingTask, if the permission is disabled Apps cannot run tasks like daily maintenance, backups, background data processing, or periodic refreshes from server etc

Background App Refresh permission: image

Proposal

A new permission handler should be created to get backgroundRefreshStatus so that Apps would be able to check and prompt the user to enabled Background App Refresh in App settings

Specific requirements or considerations

No response

Additional information or context

No response

absar avatar Sep 28 '23 13:09 absar

Looks like the background_refresh_status package can be used as a stopgap, but yes, would much prefer using this package exclusively.

tony-ditchlabs avatar Oct 18 '23 21:10 tony-ditchlabs

@mvanbeusekom this ticket should be closed

ened avatar Feb 26 '24 14:02 ened

Closing this issue as checking the backgroundRefreshStatus is supported since version 11.3.0 of the permission_handler plugin. Thanks @ened for the contribution.

mvanbeusekom avatar Feb 28 '24 08:02 mvanbeusekom