awslabs / aws-mobile-appsync-sdk-android

Android SDK for AWS AppSync.
https://docs.amplify.aws/sdk/api/graphql/q/platform/android/
Apache License 2.0
105 stars 58 forks source link

How can I know the time when a subscription has been started. #70

Open 472574155 opened 5 years ago

472574155 commented 5 years ago

State your question just like iOS. https://github.com/awslabs/aws-mobile-appsync-sdk-ios/issues/68

Now,android sdk's interface 'onCompleted' is called when a subscription is terminated.

Environment(please complete the following information):

palpatim commented 5 years ago

Hi @472574155 thanks for the question. As you point out, there isn't an API currently that will provide status for an active connection; only a callback invoked on termination. I will bring this request to our product team for prioritization, and we will update this thread when there is more information.

mlykotom commented 5 years ago

Hello, any update on this? (it's been quite some time :( )

marekabaffy commented 5 years ago

Any updates @palpatim? Not knowing when the subscription starts being active is causing a really annoying bug in our app, where we are losing data changes if there is any delay in the subscription initialization.