Back

Realtime Updates in React Native

  • 0
  • Web
  • Realtime
_blank
10 Jun, 2023, 15:44

I'm trying to use the Realtime feature in a react native app, but I keep getting this error:

TypeScript
{"code": 1008, "message": "Invalid Origin. Register your new client (cloud.appwrite.io) as a new Web platform on your project console dashboard"}

I'm using the web platform. what could be causing this, and how can it be fixed?

TL;DR
The user is encountering an error while trying to use the Realtime feature in a react native app. The error message suggests that the origin needs to be configured properly, and registered as a platform in the project console dashboard. The solution is to configure the origin to match the app's domain (e.g., myapp.com) and register it as a new Web platform in the project console dashboard.
Drake
10 Jun, 2023, 15:53

That's weird... Appwrite thinks your origin is cloud.appwrite.io 🧐

You should probably configure the origin to be something for your app like myapp.com. then, make sure it's registered as a platform for your project

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