Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔔 Implement notification actions to iOS #653

Merged
merged 4 commits into from Apr 20, 2024

Conversation

igorescodro
Copy link
Owner

Adding a new Category and Actions for the Task notification, which will allow users to complete a task without needing to open the app.

Adding a new Category and Actions for the Task notification, which will
allow users to complete a task without needing to open the app.
To handle the notification actions, we need to use Swift's AppDelegate.
But since it would be easier to implement and use the injections in the
Kotlin-side, a new class and structure was created to delegate all this
process.
NotificationActionDelegate implemented to handle the "Done" action
allowing the users to complete a task without opening the app.

Important to notice that the `completionHandler()` must be called
**after** the Coroutines finishes execution. If not, the Coroutines will
be cancelled if the app is not in background and it will throw an
exception.
Small changes that are not needed.
@igorescodro igorescodro merged commit 0701e86 into main Apr 20, 2024
4 checks passed
@igorescodro igorescodro deleted the feature/notification-action branch April 20, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant