Opening exp://192.168.100.9:8081
on SM_M115F[phone name]
this is what I get as the name but then the configuration doe snot accept exp
localhost
What do you mean?
so that is the URL that comes when I start the expo server
I am insinuating that, its probably the hostname
this means that we dont need axios
we can talk to the server functions by using the sdk
Axios?
Yes
its an npm library like fetch web api
Appwrite is the full backend. You don't need something else. It includes everything to work with it
Not needed if you're using the SDK
what of this
this is very cool .. team did a good work then
Then instead of adding localhost in platforms section, you will need to add such IP
does it need the IP of the phone rendering the react native code or the PC
When working locally with Expo React Native, you're often using Expo's development server which typically runs on your local machine. The hostname you'd use for Appwrite when working with a locally connected phone would generally be your machine's local IP address.
You can usually find your machine's local IP address through your system settings or by running a command in your terminal or command prompt. For example, on Windows, you can use the ipconfig command, and on macOS or Linux, you can use ifconfig or ip addr commands.
Once you've obtained your local IP address, you can use that IP as the hostname when setting up your Appwrite project. For instance, if your local IP address is 192.168.1.10, you would set 192.168.1.10 as the hostname for your Appwrite project.
Remember, using your local IP as the hostname in your Appwrite project settings allows your Expo app running on a connected device to communicate with the Appwrite backend while in development mode.
from chatGPT
yet to try it .. then we can use it to help others
Not sure, maybe the phone
You could try and if it gives you a CORS error, you can try with the PC
what chatgpt is saying is that I need to use the IP of the pc and then because the phone is connected it would work
If you're accessing the PC through the phone, yes. If you're hosting it directly in the phone, then phone IP
Recommended threads
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...