-
Notifications
You must be signed in to change notification settings - Fork 58
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
MqttSubscriptionClient: connection lost #22
Comments
Hi @turswolm , The logs show that the subscription is completed which means in the |
Thank you for your quick response. I don't think that it's designed behavior that a subscription ends unexpected after some time and I have to subscribe again in the The question is, why the connection is lost again and again and why no reconnect is done. I can see no reason. My app (or even the Android emulator) is connected via Wifi and says in the Wifi. In |
Same problem here. I have narrowed the problem to Android 8.0 or greater. Also when restarting subscription sometimes it throws a |
Hi @lglossman , Can you provide a stacktrace for the |
|
@minbi Is onError a terminal event? I ask this because I need to restart the subscription and I'm not sure if i should be doing that on both onComplete and onError. |
@lglossman , |
How can I distinguish between the two cases that the subscription has completed due to cancellation or a connection loss? |
org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0, |
@dabeidl Can you try using 1.1.0 version of |
…ver it values and ConcurrentModificationException throw (awslabs#22)
Hi,
I'm facing a problem when using subscriptions with Android SDK. When I start my app subscriptions work well for some time (about 1 min). After this time connection is lost and not established any more. It seams that this happens always when I restart my app but I have not figured out a predictable behavior or why this happens.
With my JS client I don't have this issue. So I tried your sample app https://github.com/aws-samples/aws-mobile-appsync-events-starter-android and I have the same issue.
I'm using the latest version of this SDK (2.6.21) but also faced the problem with earlier versions.
Thx in advance for your answer.
The text was updated successfully, but these errors were encountered: