-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Actionable Notifications #916
Actionable Notifications #916
Conversation
The new PR |
let replyInputAction = UNTextInputNotificationAction( | ||
identifier: "messageNotification.replyInputAction", | ||
title: "reply".localized, | ||
options: []) |
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.
indentation in this diff off. Can we fix this by running the linter?
identifier: "messageNotificationCategory", | ||
actions: [thumbsUpAction, thumbsDownAction,replyInputAction], | ||
intentIdentifiers: [], | ||
options: .customDismissAction |
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.
++
if let userInput = (response as? UNTextInputNotificationResponse)?.userText, | ||
let channel = userInfo["channel"] as? Int32, | ||
let replyID = userInfo["messageId"] as? Int64 { | ||
let tapbackResponse = !BLEManager.shared.sendMessage( |
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.
Two questions here:
- It looks like for each of these the variable
tapbackResponse
is never used. Can they be removed? - Do we need to consider any edge-cases that could cause this to crash? (ie: BLE is disconnected)
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.
sendMessage returns a boolean if it fails or goes through. For logging purposes we could use it.
Merging into a branch in the repo for testing |
What changed?
Creates Actionable notifications for DMs and channel messages. Includes thumbs down/up tapbacks and reply.
Why did it change?
Useful for quite responses and watch OS.
How is this tested?
on my iPhone
Screenshots/Videos (when applicable)
Checklist