Hello guys, How can I validate that the connection was successful?
You mean realtime?
No, I mean validate the connection with appwrite, if it really manages to connect or not
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
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.
Well, most apps don't check if they have an initial connection
I don't think checking initial connection is needed
Perfect, thanks for responding
Do you have additional doubts or something else respect this?
Or can I mark this as solved?
Recommended threads
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...