Closed philippzagar closed 1 year ago
Merging #14 (51e6303) into main (cf4d9a0) will increase coverage by
0.11%
. The diff coverage is100.00%
.
@PSchmiedmayer Thanks for the feedback, the branch is now ready to merge, all lints and tests in the pipeline finish successfully. However, some checks are staying on "Wating for status to be reported" (the same also happenes in another repo), even though the actual job (e.g. linting) ran through. Retriggering the CI didn't help. Any hints?
@philippzagar Same issue as in https://github.com/StanfordSpezi/SpeziOnboarding/pull/9, will fix this and merge the PR right after that 👍
Flag that indicates if Local Notification authorization given
:recycle: Current situation & Problem
As an application developer utilizing the
Spezi
framework, there is currently no way to determine if the Local Notification authorizations are already granted. This could result in unnecessary onboarding views to grant notification permissions, even though they are already given.:bulb: Proposed solution
The
Scheduler
module is extended by thepublic var localNotificationAuthorization: Bool
flag. This property indicates whether the authorization to deliver local notifications is already given to the app. Note that the flag is anasync get
computed property, meaning one has toawait
the result.An example usage could be the following:
:gear: Release Notes
Scheduler
module by a flag that allows to determine if the authorizations to deliver notifications are already granted:heavy_plus_sign: Additional Information
--
Related PRs
SpeziTemplateApplication PR
Testing
A UI test case was written to check the behavior of the flag.
Reviewer Nudging
Code changes are minimal
Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: