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
android push-notification parse.com


source to share


No one has answered this question yet

Check out similar questions:

2609
Is there a unique identifier for an Android device?
687
Android error: Failed to install * .apk on device *: timeout
646
Calling metadata "Unable to add null window token - this is not an application" with getApplication () as context
558
Get the current language in the device
12
In some cases, the token of a gesture notification is not saved
4
How to get a device token
2
Analysis device marker is blank
1
Parsing detection notification deletes invalid device token?
0
Waiting for device token using parse android
0
Is there an empty device token in the Parse Installation Class?



All Articles
Loading...
X
Show
Funny
Dev
Pics