Device ID is not generated during analysis?

I am using parsing to send notifications When I run my app from different mobile devices, it works for some mobile taps, but doesn't work for some taps when I see my parsing bar has a devicetoken for these mobs. does not generate, but devicetoken generates for those mobs in which push works.

Code to save device in session

ParseInstallation.getCurrentInstallation().put("UserId", MainSingleTon.ObjectID);

ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() {

    @Override
        public void done(ParseException arg0) {
            // TODO Auto-generated method stub
            if(arg0==null) { //if Error is null
                Intent loginIntent = new Intent("com.example.welcome.MainActivity");
                MainSingleTon.UniqueId=ParseInstallation.getCurrentInstallation().getInstallationId();
                System.out.println("dhawdudiwhdh "+ MainSingleTon.UniqueId);
                startActivity(loginIntent);
                mProgressDialog.dismiss();
                //saving crendential to shared preferences
                saveCendential(user, password,MainSingleTon.ObjectID);
                // Dismiss Dialog

                overridePendingTransition(R.anim.right_in, R.anim.left_out);
            }
            else {
                mProgressDialog.dismiss();
                showToast(arg0.toString());
            }

        }
});

      

describe the link to the database image http://screencast.com/t/EdRnu2skfwy3

+3


source to share





All Articles