ngageoint / mage-android

Mobile Awareness GEOINT Environment Android
Apache License 2.0
40 stars 22 forks source link

Set Url Activity #37

Closed Jufi-101 closed 5 years ago

Jufi-101 commented 5 years ago

This looks like its a beautiful app, but after going through the ordeal of setting it up. I came across the Activity thats asking for a server URL. so whats the server url

newmanw commented 5 years ago

There is no central server, you will need to setup and manage your own server.

https://github.com/ngageoint/mage-server/blob/master/README.md

Jufi-101 commented 5 years ago

i setup the server, but when i try setting the url, it produces an error "Connection closed by peer"

newmanw commented 5 years ago

Are you running over http? If so depending on the version of Android you are using you may need to modify the app.

https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted

Also possible you are running https with a self signed or untrusted certificate. If that is the case try and install the CA your cert was signed with or the cert itself on the device.

Jufi-101 commented 5 years ago

i changed the https request to http, which worked but now the app displays an alert dialog

"App Compatibility error", "This app is not compatible with this server. Please update your context or talk to your MAGE administrator."

first time it displayed the dialog, i bypassed the check by commenting out the if statement, which allowed me to create a new user, activate the user and the new device. but am not able to log in the new user from the emulator. even if i bypass the check's if statement

restjohn commented 5 years ago

What sort of feedback does the app give you when you attempt to login your new user?

Jufi-101 commented 5 years ago

it says, app compatibility error

restjohn commented 5 years ago

Have you set a break point in ServerApi.isValid() to see whether that check passes? If not, you may need to make sure you are using compatible versions of the app and server and that your server is appropriately configured.

Jufi-101 commented 5 years ago

Yes,i have and it does not pass. i figured since am configuring from the latest commits, both server, app and sdk. they would be compatible.

restjohn commented 5 years ago

You could try setting up your server from the 5.2.6 release tag and using the app version from the Google Play Store. Are you building and running the server, SDK, and app from their respective master branches or from release tags? What are the debug values you see that cause the ServerApi.isValid() check to fail?