A library that gives you access to the powerful Parse cloud platform from your Android app. For more information about Parse and its features, see the website, blog and getting started.
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Then, add the library to your project build.gradle
dependencies {
implementation "com.github.parse-community.Parse-SDK-Android:parse:latest.version.here"
// for FCM Push support (optional)
implementation "com.github.parse-community.Parse-SDK-Android:fcm:latest.version.here"
}
Initialize Parse in a custom class that extends Application
:
import com.parse.Parse;
import android.app.Application;
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
// Remove for production, use to verify FCM is working
// Look for ParseFCM: FCM registration success messages in Logcat to confirm.
Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);
Parse.initialize(new Parse.Configuration.Builder(this)
.applicationId("YOUR_APP_ID")
.clientKey("YOUR_CLIENT_KEY")
.server("http://localhost:1337/parse/")
.build()
);
}
}
The custom Application
class must be registered in AndroidManifest.xml
:
<application
android:name=".App"
...>
...
</application>
See the guide for the rest of the SDK usage.
We want to make contributing to this project as easy and transparent as possible. Please refer to the Contribution Guidelines.
- ParseUI for Android
- ParseLiveQuery for Android
- ParseFacebookUtils for Android
- ParseTwitterUtils for Android
Copyright (c) 2015-present, Parse, LLC.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.