-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Operation fails when trying to start scan in ForegroundTask due to dependency on Activity.
Proposed solution:
- Remove activity from PermissionsHandler constructor
- Make PermissionsHandler activity aware -> to set activity instance when available (check for null is already present in requestPermissions method)
- Replace requestPermissions with hasPermissions inside _ensureInitialized and throw error if not granted -> let the user request permission when activity available and start scan even if App in background if permissions already granted
Note:
I already have a fix for this but I am not able to push into the repo (patch attached)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request