Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Show Error in Alert View if Base URL is wrong #3

Open
jefflinwood opened this issue May 5, 2014 · 2 comments
Open

Suggestion: Show Error in Alert View if Base URL is wrong #3

jefflinwood opened this issue May 5, 2014 · 2 comments
Assignees

Comments

@jefflinwood
Copy link

If the user doesn't have the Drupal site running, or the network is down, or the URL is wrong, the app should pop up an AlertView saying that there was a failure to connect to the server

@vivekvpandya vivekvpandya self-assigned this May 5, 2014
@vivekvpandya
Copy link
Owner

For this particular problem there are many possible cases some of them are covered by me and on some of them I am working. Like bas URL ( than httpStatusCode == 404 not found) that is handled and no connection to the server (than httpStatusCode == 0) that is also handled.

But what if connection requires proxy authentication or your service provider requires user to be authenticated ( for example my service provider displays login page and set "Connection" header value to "Close" until I provide valid username password combination ) or any other error which may have httpStatusCode 200 but we don't get JSON object -----> to handle this situation I have added one IF that check weather retrieved JSON object is nil or not other wise show UIAlertView

@jefflinwood
Copy link
Author

Ok, that's great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants