Discourse Hub android mobile app cannot find private server

My private Discourse server is working and accessible via browser and iOS mobile app.

However, on android, Discourse Hub cannot find the server. (It can find other servers like meta.discourse.org.)

Any idea why this fails? Could it be that the android mobile app uses a different crawler agent to access the server than the iOS version? Or some other reason?

Yes, the mobile app makes some specific requests to determine that the URL is a Discourse server.

There are two requests:

  • a HEAD request to serverdomain.com/user-api-key/new
  • a GET request to serverdomain.com/site/basic-info.json

If either one doesn’t return data, the app will assume the URL isn’t a Discourse site.

1 Like

Most helpful, @pmusaraj ! Thank you. To follow up:

1- Both statements produce a non-error response.

2- Why does the iOS version get through these tests successfully and connect to my server, but not the android version?

1 Like