However, the emulator couldn’t resolve the local.openedx.io domain since it’s bound to my local machine and not recognized inside the emulator. To work around this, I updated the config to API_HOST_URL: 'http://10.0.2.2:8000'
Now the API requests are working, and the app can successfully fetch data. However, images are not being loaded on the Home (Discover) page. I suspect this is due to the domain mismatch between the LMS and the Android app.
Additionally, when I try to access course content, I receive a 404 - course not found error. The same course renders correctly in the browser via the Learning MFE.
Could someone please guide me on the correct steps or configuration to successfully run the Open edX Android app in development mode with Tutor?
Thank you so much for bringing this to the attention of the mobile CCs – I really appreciate your support and help in getting more visibility on the issue!
Set up zrok by generating an access code and enabling our environment
Create a reserved share for the LMS_HOST:
zrok reserve public http://local.openedx.io:8000 --unique-name "<name>"
Share the now reserved URL
zrok share reserved <name>
zrok will now provide you with a URL. Add this to the API_HOST_URL configuration and rebuild the android images. After the build process has completed and you’ve restarted the platform, the android app should connect with the LMS successfully.
Note that there is another way to share zrok urls using public shares but that is not recommended as it changes the share URL everytime you run zrok and the image needs to be rebuilt again.