Skip to content
Back

Appwrite realtime didn't work

  • 0
  • React Native
  • Realtime
  • Cloud
Popt
14 Sep, 2025, 14:01
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.

Please help me, I have posted many times but never received a response. I have not made any progress on the project for two weeks because of this problem.

I have encountered a new problem. I found that I must set the table permission to ANY READ so that I can receive the response of the real-time connection.

This is the package i use: "react-native-appwrite": "^0.13.0",

TL;DR
Appwrite realtime isn't working in the React Native app. The developer set up the real-time connection using useEffect, but it's not responding to updates from the AppWrite Cloud Dashboard. After struggling for weeks, they discovered that setting the table permission to ANY READ resolved the issue. The developer is using the "react-native-appwrite" package version 0.13.0.
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