Giter Site home page Giter Site logo

Comments (6)

palpatim avatar palpatim commented on June 1, 2024

Hi @472574155, the 2.7.0 release of the AppSync SDK includes support for "catch up" queries when reconnecting, and included some bug fixes around reconnection logic. Does this issue persist using the latest SDK version?

Also, for clarification, when you say "Do it like this as soon as possiable several times", do you mean, you background and foreground the app rapidly several times in succession to trigger this issue?

from aws-mobile-appsync-sdk-android.

472574155 avatar 472574155 commented on June 1, 2024

@palpatim
"background and foreground the app rapidly several times in succession to trigger this issue" YES

Question when updated AppSync SDK Version to 2.7.0
When I updated AppSync SDK Version to 2.7.0 , my application can no longer working as well.
When applicaition started, UI action can not be triggered. Application jammed.

from aws-mobile-appsync-sdk-android.

scb01 avatar scb01 commented on June 1, 2024

@472574155
sorry to hear that you are running into issues. I will look into this further. It would be great if you can post the contents of your logcat.

One thing I'd like you to try - can you remove the code to cancel and null out the subscription when the app goes to the background?

The latest version of the SDK has automatic reconnection logic built into it and you don't need to do special handling for background and foreground.

from aws-mobile-appsync-sdk-android.

472574155 avatar 472574155 commented on June 1, 2024

@cbommas
I removed the code to cancel and null out the subscription when the app goes to the background.
But there has another question happened.
When I close a chat room as soon as the room just opened, app's UI actions have no response.
It may be a question that subscription had been cancled before it had been init completed.

from aws-mobile-appsync-sdk-android.

scb01 avatar scb01 commented on June 1, 2024

@472574155
Did the change I suggested fix the issue that you were having regarding messages making it to the callback? If so, lets close this issue and open a new one for the other question that you had.

I am just trying to keep one problem in one thread - will be helpful to others that facing similar issues.

from aws-mobile-appsync-sdk-android.

472574155 avatar 472574155 commented on June 1, 2024

@cbommas
Although new happened question is the same to the issue, I will close this issue and continue to focus on #75 .

from aws-mobile-appsync-sdk-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.