I have done the following steps for edx mobile app setup,
1.) Installed edx fullstack on azure Ubuntu VM
2.) Have changed the following values in lms.env.json
"FEATURES" : {
...
"ENABLE_MOBILE_REST_API": true,
"ENABLE_OAUTH2_PROVIDER": true,
"ENABLE_COMBINED_LOGIN_REGISTRATION": true
}
3.) Created oauth2 from my edx admin panel
url : http://my azure vm name/api/mobile/v0.5/?app=android redirect url : same as url
client type : public
4.) Cloned edx-app-android in my windows machine.
5.) Change the following values in my config file
API_HOST_URL: 'http://10.0.2.2:8000' // Here i placed my azure ip running edX
OAUTH_CLIENT_ID: '' // Here i placed my oauth id generated using step 3
6.) Enabled port 8000 in my azure VM endpoints
But, while running the application in android studio it shows following error
org.edx.mobile.http.Api﹕ Auth response= {"error_description": "A secure connection is required.", "error": "invalid_request"}
Can some one help me to resolve this issue? Looking forward. Thanks.