Hi Social Plus Team,
We are continuously facing MQTT errors in the Singapore region while subscribing topic. Because of this, chats are not updating in real time.
Hello @Matth , Thank you for reporting this issue. To help us investigate the MQTT errors and real-time chat updates in the Singapore region, could you please share the code snippet used during login / SDK initialization (including how the user session is created and connected)?
This will help our team verify whether the connection flow are set up correctly.
This is being used for initialising the SDK
await AmityCoreClient.setup(
option: AmityCoreClientOption(
apiKey: AmityEnv.apiKey,
httpEndpoint: AmityEnv.httpEndpoint,
mqttEndpoint: AmityEnv.mqttEndpoint,
showLogs: true,
),
sycInitialization: true,
);
Here are my env variables
// SDK endpoints for CoreClient static const AmityRegionalHttpEndpoint httpEndpoint = AmityRegionalHttpEndpoint.SG; static const AmityRegionalMqttEndpoint mqttEndpoint = AmityRegionalMqttEndpoint.SG;
Here is how I am logging in my user:
final currentUser = FirebaseAuth.instance.currentUser;
if(currentUser!=null){
await AmityCoreClient.login(currentUser.uid) .displayName(currentUser.displayName ?? '') .submit();
}
I am using firebase for user authentication and amity sdk in Flutter.
Hello @Matth ,Our team has already resolved this issue. Could you please try again on your side?
If the issue still persists, feel free to let us know and we’ll be happy to check further.
Thank you.