so saving username in parse installation in android this:
parseinstallation installation = parseinstallation.getcurrentinstallation(); installation.put("user", username); installation.saveinbackground(); i make query username send pushes specific device. if want 'unlink' device receiving pushes, have delete row parse installation table username username stored in app.
i have tried pretty everything, , down this:
parseinstallation installation = parseinstallation.getcurrentinstallation(); parseobject object = installation.getparseobject("user"); object.deleteinbackground(); but alas, doesn't work. have tried installation.deleteinbackground() failed. how can remove parseobject or installation device can no longer receive pushes?
you cannot delete installation object client - can parse cloud code master key.
you can following:
parseinstallation installation = parseinstallation.getcurrentinstallation(); installation.remove("user"); installation.saveinbackground(); or if doesn't work try:
parseinstallation installation = parseinstallation.getcurrentinstallation(); installation.put("user", "" or null); installation.saveinbackground();
Comments
Post a Comment