Android : Error com.parse.ParseException: at least one ID field (installationId,deviceToken) must be specified in this operation Android : Error com.parse.ParseException: at least one ID field (installationId,deviceToken) must be specified in this operation android android

Android : Error com.parse.ParseException: at least one ID field (installationId,deviceToken) must be specified in this operation


Same problem here.
This looked like a race condition to me, so I tried putting setDefaultPushCallback in a new Callback like this:

ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback(){    @Override    public void done(ParseException e)    {        PushService.setDefaultPushCallback(ParseApplication.this, ParseStarterProjectActivity.class);    }});

I haven't had a crash yet (although it hasn't been very long).I hope this helps.


We had a similar issue:

We had to move the: PushService.setDefaultPushCallback(this, MainActivity.class);

Into the MainActivity#onCreate, we tried calling this in our application class but that cashed.

Parse are really unhelpful on this matter, hopefully one of them and provide some insight.


I had the same Exception doing something similar. I save an ACL to the installation when the user logs in to the app with Facebook. (When doing this, the installation doesn't exist at the server yet.)

To get rid of the Exception, I used saveEventually() instead of saveInBackground(). This made the Exception go away, and the installation is saved to the server properly with it's ACL.