Closed willbach closed 6 years ago
The semantics of the push registration creation endpoint and the push registration removal endpoint are not quite symmetric. The creation endpoint also takes a provider and a channel ID, whereas the removal endpoint removes the registrations across all providers and channel IDs.
Here is a philosophical question, then. Whichever the answer, some change would be warranted:
The corresponding PR in the LNDR mobile app is to deliver an account removal feature, of which the removal of push registrations is one piece. In that context, it is easier not to iterate over push registration providers and channel IDs (and may not even be possible to do so, if, for example, a user has loaded the same LNDR account to multiple devices). So:
provider
and channelID
as well as the address.POST /unregister_push_all
).
POST /remove_account
to indicate to the server that it should do whatever it needs to do to delete that account, which right now would happen to just be removing all push registrations)