Back

not working on real phone

  • 0
  • Self Hosted
  • Flutter
BOB
3 Dec, 2023, 17:48

its working fine on android emulater but when i build apk and tried on my phone its not working. app interface is working fine but none of the appwrite functions are triggering

TL;DR
The app was not working on a real phone but was working on an emulator. The issue was resolved by updating the app package name/bundle id, adding an internet permission in the main AndroidManifest.xml file, and updating the project's platform package name/bundle id on the appwrite console. No specific errors were mentioned.
Drake
4 Dec, 2023, 07:49

Do you have any errors you can share? What did you put for the appwrite endpoint?

Ernest
4 Dec, 2023, 09:40

Just tested and had the same issue. These steps resolved the issue:

  1. Update app package name/bundle id (was com.example.myapp). In android apps that begin with com.example are regarded as debug apps.
  • Add internet permission to the main AndroidManifest.xml . Android docs says it's not strictly needed but I prefer making it explicit.
  • Update your project's platform package name/bundle id on your appwrite console.

Thats it, hope it helps. FYI, I'm using a self-hosted appwrite instance.

BOB
4 Dec, 2023, 13:03

i did all of it before but did't work

BOB
4 Dec, 2023, 13:04

but for some reason its working now

BOB
4 Dec, 2023, 13:05

thanks for ur suggestions

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