I'm using React Native, and after background the application or lock the phone, when you focus it again all the subscriptions are disconnected and they are not receving events anymore (both useSubscription and subscribeToMore)
I'm creating the client in this way
const url = config.aws_appsync_graphqlEndpoint;
const subs = createSubscriptionHandshakeLink(config, url);
const client = new ApolloClient({
link: ApolloLink.from([createAuthLink(config), subs]),
cache: new InMemoryCache(),
});
This are the versions that I'm using
"aws-appsync-auth-link": "^3.0.7", "aws-appsync-subscription-link": "^3.1.2", "@apollo/client": "^3.7.4", "react-native": "0.70.3",
thanks!