Skip to content

Commit 7e489a7

Browse files
committed
log ServerUrl & requirement, clientKey, that Installation is saved in background
1 parent 97a1518 commit 7e489a7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/android/ParsePushApplication.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,21 @@ public void onCreate(){
6363
//
6464
//initialize for use with legacy parse.com
6565
Parse.initialize(this, config.getAppId(), config.getClientKey());
66-
} else{
66+
} else {
67+
Log.d(LOGTAG, "ServerUrl " + config.getServerUrl());
68+
Log.d(LOGTAG, "NOTE: The trailing slash is important, e.g., https://mydomain.com:1337/parse/");
69+
Log.d(LOGTAG, "NOTE: Set the clientKey if your server requires it, otherwise it can be null");
6770
//
6871
// initialize for use with opensource parse-server
6972
Parse.initialize(new Parse.Configuration.Builder(this)
7073
.applicationId(config.getAppId())
71-
.server(config.getServerUrl()) // The trailing slash is important, e.g., https://mydomain.com:1337/parse/
72-
.clientKey(config.getClientKey()) // Can be null
74+
.server(config.getServerUrl())
75+
.clientKey(config.getClientKey())
7376
.build()
7477
);
7578
}
7679

80+
Log.d(LOGTAG, "Saving Installation in background");
7781
//
7882
// save installation. Parse.Push will need this to push to the correct device
7983
ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() {

0 commit comments

Comments
 (0)