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
Can not set RealTimeChannelOptions params #182
Comments
Thanks for reporting this @1N50MN14. I'm working on the fix for this: to let you use channel options properly. The symmetric encryption feature is currently not implemented, and you should not be forced to set In Ably-java: Unfortunately, the params passed by you (the user) is used as CipherParams instead, and the modes is simply not set. In Ably-cocoa: It looks like this should work fine.
I'm not sure what you mean by passing |
My understanding reading the documentation In Node.js I can generate a key using In
That's the thing, if I see you have your hands busy with a big PR (push notifications) to merge, I hope this one doesn't create a headache for you, if so we can work around this one until after the next release. Many thanks |
Unfortunately Ably Flutter doesn't support symmetric encryption yet, which is why you faced those issues. If you want Ably Flutter to read those messages currently, you cannot encrypt messages. After investigating the bugs above, it looks like symmetric encryption will be relatively easy to implement (maybe within the next release). The bugs I mentioned above will be fixed first though.
The bug means the params you pass is completely useless, so IMHO it is quite serious bug. Which is why I have fixed it but the PR is not yet up. I found another issue with ably-flutter/lib/src/platform/src/codec.dart Lines 144 to 176 in 3062cfe
is missing
This results in you getting an error: I've actually fixed these bugs and will have a PR up asap. |
Ah that totally explains why it didn't work all together, I am indeed using the Android simulator. |
Hey @1N50MN14 I'm sorry for the delay. I've been away for a while, but merging this bug fix, and creating a release with this fix is my priority. As such, today I've just fixed a failing test affecting a PR. Now, I will merge most outstanding PRs, and create the release. The release will not include symmetric encryption. |
No worries at all @ben-xD - getting rid of the "scary" remote auth error message is good start for me to use Ably in production, hopefully this one is included in the next release. I'll switch over to using symmetric encryption when it's ready ;) |
Because cipher is not nullable I'm unable to pass
{'rewind':'1'}
toRealtimeChannelOptions
without using cipher.Otherwise I could not find a reference within the flutter example how to use one...
Upon further investigation,
CipherParams
seems to be abstract. Crypto interface doesn't seem to be implemented so I couldn't usegetDefaultParams
using my server-side generated key. So I tried to manually passcipherParams
as a Map but that threw a methodChannel error as well.Basically locked out of symmetric encryption as well as channel options...
┆Issue is synchronized with this Jira Uncategorised by Unito
The text was updated successfully, but these errors were encountered: