Start a new topic

What is the correct way to use Kinvey.Push.unregister ?

var user = Kinvey.getActiveUser();

push.unregister(function() {

  Kinvey.Push.unregister(app.PushID,{userId:user._id});

});


var user = Kinvey.getActiveUser();

push.unregister(function() {

  Kinvey.Push.unregister(app.PushID,user._id);

});


Kinvey: Failed to unregister the device from receiving push notifications. Object {name: "MissingMasterCredentials", description: "Missing credentials: `Kinvey.appKey` and/or `Kinvey.masterSecret`.", debug: "Did you forget to call `Kinvey.init` with your Master Secret?"}



Neither of these work, please help, I cannot unregister push from users and every time they register an additional token is added to their profile and it breaks push.

Login or Signup to post a comment