Hi everyone,
I’m working on integrating the edX Android app with a local Open edX backend and wanted to share an issue I’ve been debugging.
Initial Issue
-
Courses were visible in the app after enabling “Mobile Course Available”
-
Clicking the Enroll button appeared unresponsive
-
Enrolled courses were not showing in the Learn section
Progress / What I Fixed
After debugging with Logcat in Android Studio, I found:
-
Enrollment API calls were actually succeeding (
POST /api/enrollment/v1/enrollment → 200) -
The issue was due to response deserialization on the Android side
After fixing that:
-
Users can successfully enroll -
Enrolled courses are now visible in the Learn section
Current Issue
When selecting a course from the Learn section:
-
Course details do not load -
Screen remains blank / stuck -
No visible UI error
Observations
-
Enrollment API is working correctly
-
Course enrollment list API is returning expected data
-
Issue occurs when loading course content after selection
Suspected Cause
-
Possible issue with Course Blocks API (
/api/courses/v2/blocks/...) -
Response structure mismatch with Android app expectations
-
Missing required fields in course content response
-
Version mismatch between Open edX backend and Android app
Environment
-
Backend: Open edX (local setup)
-
Android app run via Android Studio
-
API base URL configured using nip.io domain
Questions
-
Which API is responsible for loading course content in the Android app after enrollment?
-
Are there required configurations for the Course Blocks API?
-
Has anyone faced a similar issue where courses appear in Learn but fail to open?
Any guidance would be greatly appreciated!
Thanks in advance.