Skip to content

feat: Add support for conversation shortcuts on Android 11+ #1741

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jamesarich
Copy link
Contributor

This introduces the functionality to create and manage conversation shortcuts on Android devices running Android 11 (API level 30) and above. These shortcuts provide quick access to ongoing conversations directly from the launcher.

Key changes include:

  • Upon opening a conversation in the app, a LocusId is set for the activity, enabling the system to associate the activity with a specific conversation shortcut.
  • When a new message notification is received, the app now generates or updates a dynamic conversation shortcut using the ShortcutManagerCompat API. This shortcut includes relevant information such as the contact's name and an icon.
  • The notification itself is enhanced to include the shortcut ID and LocusId, further integrating it with the conversation shortcuts feature.

This commit introduces the functionality to create and manage conversation shortcuts on Android devices running Android 11 (API level 30) and above. These shortcuts provide quick access to ongoing conversations directly from the launcher.

Key changes include:

-  Upon opening a conversation in the app, a LocusId is set for the activity, enabling the system to associate the activity with a specific conversation shortcut.
- When a new message notification is received, the app now generates or updates a dynamic conversation shortcut using the ShortcutManagerCompat API. This shortcut includes relevant information such as the contact's name and an icon.
- The notification itself is enhanced to include the shortcut ID and LocusId, further integrating it with the conversation shortcuts feature.
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.

1 participant