Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1012 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 1012 Bytes

Android experimental app To run you have to create this class, using your parse client and server ids

package amgh.no.rabbit;

import android.app.Application;

import com.parse.Parse;

public class RibbitApplication extends Application { @Override public void onCreate() { super.onCreate(); ParseObject.registerSubclass(Messenger.class); //These values are provided by parse.com String clientid = "xxx"; String serverid = "xxx"; Parse.initialize(this, clientid, serverid);

    //Push notification
    PushService.setDefaultPushCallback(this, MainActivity.class);
    ParseInstallation.getCurrentInstallation().saveInBackground();
}

//Push notification
public static void updateParseInstallation(ParseUser user){
    ParseInstallation installation = ParseInstallation.getCurrentInstallation();
    installation.put(Message.KEY_USER_ID, user.getObjectId());
    installation.saveInBackground();
}

}