Comments (6)
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.
@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.
@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.
@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.
@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.
@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)
- Execution failed for task ':app:nodeSetup'. HOT 1
- android.net.ConnectivityManager$TooManyRequestsException HOT 9
- Execution failed for task ':app:nodeSetup'. HOT 5
- Android Studio Bumblebee will further break compatibility with Jetpack libraries HOT 3
- NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.amazonaws.mobile.config.AWSConfiguration.optJsonObject(java.lang.String)' on a null object reference HOT 3
- No ability to serlialize null input fields
- App Sync SDK crashing with SQLiteBlobTooBigException HOT 4
- How can we encrypt cache data
- AppSync codegen models throws @Nullable @Nullable HOT 4
- AppSync codegen model "S3ObjectInput" methods override error
- Cognito API InitiateAuth + REFRESH_TOKEN_AUTH does not return updated RefreshToken HOT 2
- Fatal Exception: java.lang.NullPointerException: Parameter specified as non-null is null
- AppSync gradle plugin has conflict with Apollo3 plugin HOT 1
- GraphQL subscription error 403 HOT 1
- Wrong serialisation for Enum type in WebSocketConnectionManager
- AWSAppSyncClient is not generating code from the graphql file in Android HOT 20
- AWS appsync doesn't build with agp version 8.0 HOT 5
- app crashes when retrying all subscriptions HOT 1
- Gradle configuration cache support HOT 2
- Fix critical vulnerability CVE-2022-4725 flagged by Sonarqube on dependency: aws-android-sdk-mobile-client 2.22.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-mobile-appsync-sdk-android.