Skip to content Skip to sidebar Skip to footer

Parse Server Android Studio Not Showing Information

My problem is that my parse server wont get any information from my app. I have included error logs, starter class, and main class. My parse server shows no information being passe

Solution 1:

I think you need to put this line after object.put(...);

object.saveInBackground();

Refer to http://docs.parseplatform.org/android/guide/ and see "Saving Objects" and "The Local Datastore." They have the following codes after putting information to the objects.

pinInBackground();
saveInBackground();

Also, a suggestion, your applicationID, clientKey, and your server address should be masked for security reasons.


Solution 2:

first you shouldn't expose any of this - applicationId, clientKey, server{or any other key} you should instead add it to your gradle.property like this way MyApiKey="2000000000000000" and get it, this way in your gradle buildTypes.each {it.buildConfigField 'String', 'TOKEN_API_KEY', MyApiKey} and you can use the key from any of your activity this way String my = BuildConfig.TOKEN_API_KEY so in your code for example you will have .clientKey(BuildConfig.TOKEN_API_KEY)

To your question you should log your response, not only will it make it easier for you to debug or view result value, you can set breakpoint and step into, out and see what is going on. to set log you need to Log.d(TAG, value) where TAG is private static final String TAG = yourClass.class.getSimpleName();


Solution 3:

You need to put the parse information into another class that extends Application.

Check out this answer I had on someone else post.

https://stackoverflow.com/a/45083774/8200290

Once you do that, the MainActivity can host your application for whatever you need. Let me know if you have any questions


Post a Comment for "Parse Server Android Studio Not Showing Information"