How To Successfully Run Parse.com Android App On Heruko And Deploy The Parse Dashboard
I want to develop a new android app using parse.com parse server on heruko.I followed all the proper steps of deploying parse server to heruko, when i test the app it crashes and
Solution 1:
Here is mine.
publicclassAppextendsApplication{
@OverridepublicvoidonCreate() {
super.onCreate();
OneSignal.startInit(this)
.inFocusDisplaying(OneSignal.OSInFocusDisplayOption.Notification)
.init();
Parse.enableLocalDatastore(this);
Parse.initialize(newParse.Configuration.Builder(getApplicationContext())
.applicationId("TYPE_IN_YOUR_APP_ID")
.clientKey("TYPE_IN_YOUR_CLIENT_KEY")
.server("https://MY_HEROKU_URL.com/parse/")
.build()
);
//ParseUser.enableAutomaticUser();ParseACLdefaultACL=newParseACL();
// Optionally enable public read access.// defaultACL.setPublicReadAccess(true);
ParseACL.setDefaultACL(defaultACL, true);
}
}
Manifest
<uses-permissionandroid:name="android.permission.INTERNET" /><applicationandroid:name=".App"android:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="APP_NAME"android:largeHeap="true"android:supportsRtl="true"android:theme="@style/AppTheme"><activityandroid:name=".MainActivity"android:launchMode="standard"android:screenOrientation="portrait"><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity></application>
Post a Comment for "How To Successfully Run Parse.com Android App On Heruko And Deploy The Parse Dashboard"