-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add support for Siri Shortcuts #4856
Add support for Siri Shortcuts #4856
Conversation
The link is bad, there is no headline "code-conventions", so the link https://github.com/WhisperSystems/Signal-iOS/blob/master/CONTRIBUTING.md#code-conventions is probably wrong |
Also it would be better if Signal allows Siri to |
02042cd
to
1491c75
Compare
It looks like Signal is now donating suggestions to Siri, but not in a way that messages can be customised. Would still be very nice to get some feedback on this by someone on Signal. |
How does it look with this feature? |
No idea, I haven’t received any kind of feedback so far. Maybe I have to ping someone from the Signal team? |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I am still waiting for better shortcuts support. |
Please merge I need this feature so badly why are they so slow at merging prs can we just fork it and make a Signal Community version |
This is a great PR! I'm curious, @StefanLobbenmeier, why did you choose to create a new "SendMessage.intentsdefinition" file instead of supporting a handler for the Ref: https://developer.apple.com/documentation/sirikit/dispatching_intents_to_handlers
For example, here's how Telegram seems to support it: https://github.com/peter-iakovlev/Telegram/tree/public/SiriIntents |
@adhulipa honestly because I am not an iOS developer and was not aware of that INSendMessageIntent unlocks a Siri Shortcut. I was also wondering how you can make a shortcut that supports selecting an account directly. But I first wanted to get the signal team to look at this before I spend more effort investigating on how this might be implemented. But so far I have been ghosted 😢 Feel free to open another PR where you improve upon my approach, I hope that they somehow react to yours then. |
Telegram also has some Intents like I did here: https://github.com/TelegramMessenger/Telegram-iOS/blob/master/Telegram/SiriIntents/en.lproj/Intents.intentdefinition But I have not used Telegram before so I am not quite sure what they are |
I found this commit claiming to add Siri Shortcut support, but I think it only enabled donating intents like we have in signal, that open the messaging app so you can type, no parameters. I think support for parameterized use in Siri Shortcuts was enabled sometime in 2021: TelegramMessenger/Telegram-iOS#190 (comment) |
I read up some more and I dont see how telegram has declared the Shortcut Support. The references to INSendMessageIntent in plist files are the same as the ones in Signal plist files. But I found this commit in another messenger, that looks more like my approach. |
Thanks for the notes @StefanLobbenmeier! Super interesting! -- I am speculating that it's likely the Signal team hasn't looked at this because of the pending merge-conflicts? Do you know how to fix them? Also, I would recommend checking the "My PR is fully baked... " checkbox and taking a second look at the description box and making sure it's all updated and tidy. Generally, in these types of open source projects I have found that the maintainers are super busy and tend to not respond when something doesn't look ready. Of course, I'm not a Signal developer :D -- I'm just sharing my experiences from working on open sources contributions from many years ago :D |
Yeah I was mostly looking for feedback before I spend any more time on this. Like I said I am not an iOS developer, I mostly do Java and Kotlin in the Backend at work, so it would be better if someone with real experience in iOS and app development would take a look. But feel free to cherry pick my commits and try a new PR, for me it will be some time until I have more time to look into this. |
@harry-signal Hey please can we get some more info about this? We need some feedback |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to inactivity. |
Similar to |
signal developers doesn’t answer or comment issues/pull requests, in this case, for years but the stale bot github action is set to 1 week. |
ping |
First time contributor checklist
Contributor checklist
Description
Closes (or at least starts with closing) feature requests like
A screenshot of what a potential shortcut might look like:
Current shortcomings:
I wanted to share this state with you though to get some feedback if this is actually something that would be merged and if I used the correct APIs in the Signal codebase