Back

validate connection in flutter

  • 0
  • Flutter
SnaidenP
20 Nov, 2023, 13:32

Hello guys, How can I validate that the connection was successful?

TL;DR
The user is asking how to validate a connection in a Flutter app with Appwrite. They want to know if it's possible to check if the initial connection is successful to ensure a good user experience. There is no solution provided in this support thread.
D5
20 Nov, 2023, 14:20

You mean realtime?

SnaidenP
20 Nov, 2023, 14:26

No, I mean validate the connection with appwrite, if it really manages to connect or not

D5
20 Nov, 2023, 14:28

You only connect to appwrite when you send a request, for example, to get documents. So consequently, the best way to know if the connection is or not valid is by seeing if the request has a valid result or an error is being thrown

SnaidenP
20 Nov, 2023, 14:33

I understand, thank you, but I was referring to why my app depends 100% on appwrite, so if I don't have an initial connection to validate if I can communicate with the server, I think it would generate a bad user experience.

I mean, I would prefer to know if I have a connection from the beginning.

D5
20 Nov, 2023, 15:01

Well, most apps don't check if they have an initial connection

D5
20 Nov, 2023, 15:02

I don't think checking initial connection is needed

SnaidenP
20 Nov, 2023, 15:10

Perfect, thanks for responding

D5
20 Nov, 2023, 15:40

Do you have additional doubts or something else respect this?

D5
20 Nov, 2023, 15:40

Or can I mark this as solved?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more