Skip to content
Back

Realtime didn't work in react native expo.

  • 0
  • Android
  • React Native
  • Realtime
  • Cloud
Popt
9 Sep, 2025, 03:58
TypeScript
useEffect(() => {
    const { client } = createClient();

    const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.tables.68a3fd390007b23f8ee7.rows.68b2f2e0001bdd8aeda6.update`,
      (response) => {
        console.log(response);
      },
    );

    return () => {
      unsubscribe();
    };
  }, []);

The above is my code, this is just a test. I have confirmed that all IDs are correct and the table has CRUD (any) permissions set. Then I updated the data in the AppWrite Cloud Dashboard, but I still didn't receive any response.

Seniors please help, I'm really at a loss as to what to do. I'm using the react-native-appwrite package and the environment is expo development build.

TL;DR
Realtime feature not working in React Native Expo: The developer created a subscription using react-native-appwrite package for realtime updates but doesn't receive any response when data is updated in the AppWrite Cloud Dashboard. The IDs and permissions are correct. Solution: Make sure to check if the connection is properly established and subscribed to the correct channel. Double-check the environment configurations for any issues.
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