Closed motiapp closed 1 year ago
➤ Automation for Jira commented:
The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3562
Hey @motiapp Thanks for reporting this. Could you please confirm that this started happening after upgrading your ably-flutter version to 1.2.16? If so can I suggest that you downgrade to 1.2.15 until we fix this issue?
I hadn't used the package before last week. I did try the .15 version also, just to make sure, and it was the same for me.
Thanks for confirming @motiapp .
The issue has been identified and we will provide a fix as soon as possible. In the meantime, can I suggest that you use authCallback
instead of authUrl
in your ClientOptions
For example
final options = ClientOptions(
authHeaders: headers,
echoMessages: false,
authCallback: (params) async {
// Replace this with your token request, token string, JWT, or tokenDetails object
return TokenRequest.fromMap(
await AppProvisioning().getTokenRequest(),
);
}
);
Please do not forget to remove authUrl
Thanks, I can confirm it's working with the authCallback
method.
This is currently partially blocked by https://github.com/ably/ably-java/issues/935
This basic connection code causes a fatal crash of my iOS app every time that connect() is called on an ably.Realtime instance. I have tried turning off autoConnect and manually connecting, and it crashes either way. It happens every time on both the Simulator and a iPhone X device. When running on the simulator I get a crash report in a system dialog window (not from flutter's console).
My connection code is basic and works just fine on the Android simulator.
Does this even work on iOS for anyone right now?
iOS app crash log: