Hi everyone,
I'm running into an issue with my self-hosted Appwrite backend and I could use some help. I’ve successfully set up an Android app in my Flutter project, and everything works fine when debugging on a physical Android device connected to my computer (using email/password session to connect to the database).
However, when I build an APK and run the app on my phone without it being connected to Flutter, I get the following error:
ClientException with SocketException: Failed host lookup: 'subdomain.domain.com' (OS Error: No address associated with hostname, errno = 7), uri=https://subdomain.domain.com/v1/account/sessions/email
I’ve already made the necessary adjustments mentioned in the Appwrite package documentation on pub.dev, including adding the activity tag to the Android manifest along with my Project-ID. I initially encountered this issue on a server set up through elest.io, but now I've switched to my own server hosted on Hetzner and am still getting the exact same error.
Since everything works fine in debug mode, I feel like my DNS settings are correct. Does anyone have any ideas on what could be causing this issue in production or what steps I might be missing? Any help would be greatly appreciated!
Thanks in advance!
Set the internet android permission in androidmanifest
oh, that sounds to easy. thank. i will have a look
Recommended threads
- Having issues with login via CLI
``` ~/appwrite appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...