-
Notifications
You must be signed in to change notification settings - Fork 148
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
Pushed data should contain a client secret #70
Comments
@reivilibre I've done some test following your suggestion: |
Looking through Sygnal it seems that only a magic "default_payload" property of the device data is actually sent: Lines 430 to 431 in 53015c7
|
Ok, it works, thanks @clokep ! Element Android will use this trick to prepare multi account support. |
@bmarty Nice - What's the status of multiple accounts on Element Android ? |
@varac it's still not planned yet, we're focusing on other features right now |
Is there a problem with the workaround described above that doesn't work for you? |
Oh sorry, I don't think so, I just read that one of the reasons multiple account support wasn't implemented yet was because of this and since this issue is still open it seems like it hasn't yet been done. Sorry if I caused confusion. |
I think we an close this. 😄 |
@bmarty For us new guys not as familiar with internals, how exactly can we "implement this ourselves" as @reivilibre said? |
@jittygitty Sorry for not seeing this sooner. One of your clients can add this into the data attribute Another client could set Then your client has something it can read when it receives a push, to determine which account the push is for. |
In order to support multi accounts on matrix clients, the Push data which are sent to mobile Matrix clients should also contain the
user_ida client-secret, to let the app perform a sync on the correct account.Related issue:
The text was updated successfully, but these errors were encountered: