jeudi 13 août 2015

App Users not set as registered as Subscribers

I have no idea why my app users (in production) are not getting added to my notification send list. When I used my 2 test devices they worked fine and got added to the list.

Am I missing something? I believe my code is fine as it works for my devices at home.

public class AppFirst extends Application {

  @Override

  public void onCreate() {

  super.onCreate();



// Add your initialization code here

Parse.initialize(this, "XXXX", "XXX");

ParseInstallation.getCurrentInstallation().saveInBackground();



ParsePush.subscribeInBackground("", new SaveCallback() {



    @Override

    public void done(com.parse.ParseException e) {

        // TODO Auto-generated method stub

         if (e == null) {

              Log.d("com.parse.push", "successfully subscribed to the broadcast channel.");

            } else {

              Log.e("com.parse.push", "failed to subscribe for push", e);

            }



    }

});





ParseUser.enableAutomaticUser();

ParseACL defaultACL = new ParseACL();

// Optionally enable public read access.

// defaultACL.setPublicReadAccess(true);

ParseACL.setDefaultACL(defaultACL, true);

  }

}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire