Hello! We have created a taxi app in flutter. So far everything is working fine, except for one. How to automatically update a document without flutter on the server side? For example, a taxi driver, when entering the application, presses the online button and can pick up the order. But there is a case where he exits the application without pressing offline. In this case, we should automatically change its status to inactive (offline). Do I need to write a function for this and deploy it to the server?
I always suggest creating a sort of heartbeat by having the app update a last ping timestamp every minute or so. If the app stops updating that timestamp after Y minutes, they can be considered offline
Okay, that's understandable. But how then to update the document on the server to change the driver status to offline automatic?
probably with a cloud function
Thank you! Is it possible to do this through Dart?
Yes! Dart 2.15, 2.16 and 2.17 are supported runtimes as of now.
Please take a look here for all the supported runtime environments https://appwrite.io/docs/functions#supportedRuntimes
Recommended threads
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...