So I used AppWrite SDK to write a simple news app with Live Updates using Realtime database. I have added the related SDK, setup the code and related class. It works from the beginning. I launched the app, the real time database updates with the latest data instantly when anything changes on AppWrite.
But if I opened the app, stay there in the interface, doesn't touch or change anything, the realtime update will not update after one or two minutes. I understand I can add a refresh button and to be honest, usually no users will open the app for that long. It's still disappointing if Appwrite SDK really doesn't stay alive that quick. May be I did something wrong or anything, so I am posting the code here for your reference. I call this class as Singleton and put that in the interface. After one or two mins, line 57 is not printing at all.
I am using iOS 18.1 + Xcode 16.1. No VPN is connected during testing.
Recommended threads
- Apple OAuth2 "Registration Not Complete"...
I'm getting a "Registration Not Complete" error when implementing Apple Sign In OAuth2 on self-hosted Appwrite. Environment: Self-hosted Appwrite (latest), iOS...
- Cannot use Apple Oauth2 in React Native/...
Hi! I've trying to add the Apple sign in feature into my Expo App. I followed the docs, but I still receiving the error "Cannot set 'location.href'". Can someon...
- Deeplinking/hosting apple-app-site-assoc...
I'm trying to implement deeplinking so that after a user logs in, they are redirected to the place in my app I want them to go. As far as I understand, I need a...