Skip to content

Cannot Connect to Parse Server via Android  #822

Closed
@calhouncole

Description

@calhouncole

I'm currently running Parse-Server 2.1.4 (same problem persists on 2.1.3) and my configuration is:

var parse_api = new ParseServer({
  databaseURI: process.env.MONGOLAB_URI || 'xxxxxxx',
  cloud: './cloud/main.js',
  appId: 'xxxxxxx',
  fileKey: 'xxxxxxx',
  masterKey: 'xxxxxxx',
  serverURL: process.env.PARSE_SERVER_URL || 'http://www.xxxxx.com/parse'
});

app.use('/parse', parse_api);

I'm unable to connect to this parse-server via my android client (I'm using parse-android:1.13.0). My configuration is:


        Parse.initialize(new Parse.Configuration.Builder(this)
                .applicationId(xxxxxx)
                .clientKey("unused")
                .server("http://www.xxxxx.com/parse/")
                .enableLocalDataStore()


                .build()
        );

Oddly enough, my iOS client (parse SDK 1.12.0) connects just fine to the same parse-server via the below configuration:

        Parse.initializeWithConfiguration(ParseClientConfiguration(block: {(configuration: ParseMutableClientConfiguration) -> Void in
            configuration.applicationId = "xxxxxx"
            configuration.clientKey = "unused"
            configuration.server = "http://www.xxxxxx.com/parse"
            configuration.localDatastoreEnabled = true
        }))

Any idea why I am able to connect via iOS but not Android? From what I've seen, my Android client is implementing the standard configurations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions