You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I believe I found a bug in ably_flutter SDK for Android.
I am testing Android release mode on Pixel 7 simulator using the latest ably_flutter SDK version 1.2.36
I've isolated the code to the SDK's listSubscriptions function, sample code of my usage:
final result = await chatChannel.push.listSubscriptions({
"clientId": clientId,
});
const pushChannel = "chat:push";
if (!result.items.any((sub) => sub.channel == pushChannel)) {
await chatChannel.push.subscribeClient();
print('PUSH: Subscribed to channel $pushChannel');
}
```
I see a ClassCastException in the logs:
E/AndroidRuntime(10077): FATAL EXCEPTION: pool-22-thread-1
E/AndroidRuntime(10077): Process: co.whyapp, PID: 10077
E/AndroidRuntime(10077): java.lang.ClassCastException
E/AndroidRuntime(10077): at h.E.a(SourceFile:1)
E/AndroidRuntime(10077): at l6.f$b.a(SourceFile:9)
E/AndroidRuntime(10077): at l6.f$b$a.b(SourceFile:3)
E/AndroidRuntime(10077): at l6.f$b$a.a(SourceFile:1)
E/AndroidRuntime(10077): at o6.p$c.handleResponseBody(SourceFile:84)
E/AndroidRuntime(10077): at j6.b.h(SourceFile:9)
E/AndroidRuntime(10077): at j6.b.handleResponse(SourceFile:1)
E/AndroidRuntime(10077): at j6.f.d(SourceFile:37)
E/AndroidRuntime(10077): at j6.f.e(SourceFile:354)
E/AndroidRuntime(10077): at j6.f.f(SourceFile:42)
E/AndroidRuntime(10077): at j6.f.g(SourceFile:26)
E/AndroidRuntime(10077): at j6.h$c.b(SourceFile:38)
E/AndroidRuntime(10077): at j6.h$b.run(SourceFile:47)
E/AndroidRuntime(10077): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/AndroidRuntime(10077): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/AndroidRuntime(10077): at java.lang.Thread.run(Thread.java:1012)
I am using minSdk 23, targetSdk 34.
Has anyone encountered a similar issue? It consistently crashes my Android app - everything works fine on iOS in both sim and physical device.
┆Issue is synchronized with this [Jira Task](https://ably.atlassian.net/browse/ECO-5145) by [Unito](https://www.unito.io)
The text was updated successfully, but these errors were encountered:
I apologize for the delay. Could you please provide verbose logs for this error? We are unable to reproduce it, as both listSubscriptions and subscribeClient appear to be working fine on our end.
Hello, I believe I found a bug in ably_flutter SDK for Android.
I am testing Android release mode on Pixel 7 simulator using the latest ably_flutter SDK version 1.2.36
I've isolated the code to the SDK's listSubscriptions function, sample code of my usage:
E/AndroidRuntime(10077): FATAL EXCEPTION: pool-22-thread-1
E/AndroidRuntime(10077): Process: co.whyapp, PID: 10077
E/AndroidRuntime(10077): java.lang.ClassCastException
E/AndroidRuntime(10077): at h.E.a(SourceFile:1)
E/AndroidRuntime(10077): at l6.f$b.a(SourceFile:9)
E/AndroidRuntime(10077): at l6.f$b$a.b(SourceFile:3)
E/AndroidRuntime(10077): at l6.f$b$a.a(SourceFile:1)
E/AndroidRuntime(10077): at o6.p$c.handleResponseBody(SourceFile:84)
E/AndroidRuntime(10077): at j6.b.h(SourceFile:9)
E/AndroidRuntime(10077): at j6.b.handleResponse(SourceFile:1)
E/AndroidRuntime(10077): at j6.f.d(SourceFile:37)
E/AndroidRuntime(10077): at j6.f.e(SourceFile:354)
E/AndroidRuntime(10077): at j6.f.f(SourceFile:42)
E/AndroidRuntime(10077): at j6.f.g(SourceFile:26)
E/AndroidRuntime(10077): at j6.h$c.b(SourceFile:38)
E/AndroidRuntime(10077): at j6.h$b.run(SourceFile:47)
E/AndroidRuntime(10077): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/AndroidRuntime(10077): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/AndroidRuntime(10077): at java.lang.Thread.run(Thread.java:1012)
The text was updated successfully, but these errors were encountered: