Comments (12)
@cucxabeng in order to help you debug, I need to know what the server is sending you back. Can you find that out?
from edx-app-ios.
@aleffert Thank for your reply. Can you suggest me debug to show what server response? I am trying to find...
from edx-app-ios.
@cucxabeng I usually use Charles (http://charlesproxy.com) to watch my network traffic, but if you don't already have that, you can try setting a breakpoint right here (https://github.com/edx/edx-app-ios/blob/master/Source/NetworkManager.swift#L242) and printing some things to the console or adding debug logs.
Another nice way to capture API output is to find out the request being made and then just go that URL from your web browser after logging into the LMS. The request URL is logged here: https://github.com/edx/edx-app-ios/blob/master/Source/NetworkManager.swift#L239
from edx-app-ios.
@aleffert First, thank you for very cool tool Charles.
I have just used it to watch network traffic.
I get response 404 NOT FOUND
http://MY_PRIVATE_DOMAIN/api/courses/v1/blocks/?block_counts=video&course_id=XXXXXXXXX&depth=all&nav_depth=3&requested_fields=graded%2Cstudent_view_multi_device%2Cformat&student_view_data=video&username=zzzz
from edx-app-ios.
I have same issue actually. Just downloaded the app from app store. Can't access any of the course content. Keeps getting "Unable to load course content" in Courseware section.
from edx-app-ios.
@dmitraver what course are you trying to access? We've had a few reports of that and are looking into it. Feel free to follow up with our support people via the "SUBMIT FEEDBACK" link in the app.
from edx-app-ios.
@cucxabeng are you still having a problem. It doesn't look like that API is behind a settings flag. It's relatively new though, maybe your full stack instance doesn't have that code?
from edx-app-ios.
@aleffert Embedded Systems, Electronic Interfaces. Thx for suggestion. Will do.
from edx-app-ios.
@alefferti Thank you, I found https://openedx.atlassian.net/browse/MA-978
My URL Course API: /api/course_structure/v0/courses/ instead of /api/courses/v1/blocks
It has some different with URL parameters and Response Fields. I follow description in this API on browser and fixed my app OK. Now I'm testing my app.
@dmitraver Did you set true for "ENABLE_MOBILE_REST_API" and "ENABLE_OAUTH2_PROVIDER"?
from edx-app-ios.
@cucxabeng : Are you able to access the course content now?If yes let me know how? I am facing the same issue
Thanks in advance..
from edx-app-ios.
@krishnakanthjb Sorry for late reply.
Now my app seems be ok.
1/ Plz follow http://edx.readthedocs.org/projects/edx-installing-configuring-and-running/en/latest/mobile.html to config your LMS server/
2/ I found latest release app works with new API get course and my LMS server is old version. You can test with http://you_domain.com/api/course_structure/v0/courses/COURSE_ID/blocks+navigation and http://you_domain.com/api/courses/v1/blocks/?course_id=COURSE_ID to know what is your API link. (https://openedx.atlassian.net/browse/MA-978).
from edx-app-ios.
@cucxabeng We are having the same issue when trying to deploy the Open Edx server to be used by the mobile app. May I send you an email to talk further? My email is [email protected]
from edx-app-ios.
Related Issues (20)
- Bluetooth permission in iOS 13 HOT 3
- Login Issue edx-app-ios-release-2.21.5 HOT 3
- Swift Compiler Error: Argument labels '(paginator:, collectionView:)' do not match any available overloads.
- ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. HOT 15
- Microsoft external auth is not showing on login view HOT 1
- App with 3rd party sign in services can't be uploaded(published) to the App Store HOT 1
- App not build for iOS 13 SDK HOT 1
- [Apple Store] In-app Purchase is required when release the app on apple store HOT 4
- Registration view seems to not work HOT 6
- AppTrackingTransparency prevent app store release HOT 1
- Invalid Signature at App Store uploading HOT 4
- Not able to run the app with Xcode 12.4 HOT 3
- Current issues i am facing with this App HOT 1
- How to update the custom icon to the material shape to use it HOT 1
- the app crashed due to the memory issue when i click the course after login successfully HOT 8
- Multiple command produce error HOT 2
- IOS app registration screen error 404 HOT 1
- XCODE 14.3.1 (Mac M2 CPU) IOS OpenEDX Compilation Erro HOT 2
- Mac OS M2, (Xcode 14.3.1) Command PhaseScriptExecution failed with a nonzero exit code HOT 5
- XCODE 15 Support required : Facing gradel issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edx-app-ios.