@Override public void onCreate() { super.onCreate(); ParseCrashReporting.enable(this); Parse.initialize(this, BuildConfig.PARSE_APPKEY, BuildConfig.PARSE_TOKEN); ParsePush.subscribeInBackground("wc", new SaveCallback() { @Override public void done(ParseException e) { if (e == null) { Log.e("push", "successfully subscribed to the broadcast channel."); } else { Log.e("push", "failed to subscribe for push", e); } } }); }
@Override public void onCreate() { super.onCreate(); // Initialize Crash Reporting. ParseCrashReporting.enable(this); // Enable Local Datastore. Parse.enableLocalDatastore(this); // Add your initialization code here Parse.initialize(this, "ELhVHncQTjUeE1vB6JrezPlK0wvC0rWj2B79Spha", "xyR5MkJGfdRv1K59zwnBAGy6XtTuwnx2YHLf776s"); ParseUser.enableAutomaticUser(); ParseACL defaultACL = new ParseACL(); ParseUser.getCurrentUser().saveInBackground(); // Optionally enable public read access. defaultACL.setPublicReadAccess(true); ParseACL.setDefaultACL(defaultACL, true); }
private void initParse() { // Register subclasses for various kinds of Parse Objects. ParseObject.registerSubclass(Room.class); ParseObject.registerSubclass(Slot.class); ParseObject.registerSubclass(Speaker.class); ParseObject.registerSubclass(Talk.class); ParseObject.registerSubclass(Event.class); ParseObject.registerSubclass(Location.class); // Initialize Parse with the application ID and client key. ParseCrashReporting.enable(this); Parse.initialize(this, getParseApplicationId(), getParseClientKey()); // Setup the listener to handle local notifications for when talks start. Favorites.get().addListener(new FavoritesNotificationScheduler(this)); Favorites.get().addListener(new AnalyticsHelper(getParseEventId())); // Read in the favorites from the local disk on this device. Favorites.get().findLocally(this); }
public void onCreate() { super.onCreate(); //connect to the Parse account for this app Parse.enableLocalDatastore(this); ParseCrashReporting.enable(this); Parse.initialize(this, "Pp9unQpK8SoCuXTuQScytLIiwLkFG5kVuY9fXFgC", "yL8DXs5nSGXom0Vy8wkpZWOUg2VkfCcZXw2cizbb"); }
@Override public void onCreate() { super.onCreate(); ParseCrashReporting.enable(this); Parse.enableLocalDatastore(this); Parse.initialize(this, BuildConfig.PARSE_APPLICATION_ID, BuildConfig.PARSE_CLIENT_KEY); ParseACL defaultACL = new ParseACL(); defaultACL.setPublicReadAccess(false); defaultACL.setPublicWriteAccess(false); ParseACL.setDefaultACL(defaultACL, true); }