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

Chat shortcut icon support #3600

Open
youphyun opened this issue Oct 4, 2024 · 3 comments
Open

Chat shortcut icon support #3600

youphyun opened this issue Oct 4, 2024 · 3 comments
Labels
Android OS - nice to have Features offered by the Android OS which would be nice to implement in Element T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements

Comments

@youphyun
Copy link

youphyun commented Oct 4, 2024

Your use case

I like to be able to add a chat shortcut icon to my home screen that makes it easier to stay in touch with my favourite contact(s).
This feature is available in the classic Element app and most other instant messaging applications.

Have you considered any alternatives?

The only alternative is to stay on the old Element app that is not actively developed anymore and does not fully support the new Matrix 2.0 implementation. I am not aware of any other 3rd party solution that could do the same.

Additional context

No response

Are you willing to provide a PR?

No

@youphyun youphyun added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Oct 4, 2024
@spaetz
Copy link

spaetz commented Oct 9, 2024

I think we should be halfway there already, afaik, we can open a specific room by sending an android intent:
This code shows how to send an intent that should be opening a specific room:
adb shell am start -a android.intent.action.VIEW -d elementx://open/@benoit10518:matrix.org/!dehdDVSkabQLZFYrgo:matrix.org
(please don't spam that specific room now, I don't even know if it exists :-)).

So, all we need is a widget that sends an intent to open a specific contact room. That having said, I am just a user of this thing :-)

UPDATE: confirmed that command lines such as:
am start -a android.intent.action.VIEW -d elementx://open/@myuser:matrix.org/\!ROOMID:MYSERVER?via=MYSERVER does work in starting EXA in the specified room.

@bmarty bmarty added the Android OS - nice to have Features offered by the Android OS which would be nice to implement in Element label Oct 9, 2024
@cliffjao
Copy link

FWIW - this is one of the remaining parity features preventing me from upgrading to Element X

@spaetz
Copy link

spaetz commented Nov 27, 2024

Using Activity Manager, I can launch specific chat rooms. If you then visit the 'history' page and long-press an entry, you can create a homescreen shortcut.

Just for the archive, this is the Activity that I am sending.
Screenshot_20241127-112902_Activity Manager

P.S. Using the 'Shortcut Maker' app from the Playstore, I was also able to create homescreen shortcuts that directly open a specific room.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android OS - nice to have Features offered by the Android OS which would be nice to implement in Element T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

No branches or pull requests

4 participants