Closed provokateurin closed 1 month ago
Do you have an example of a nextcloud app doing it ?
Almost every app does it, for example https://github.com/nextcloud/server/blob/master/apps/user_status/lib/Capabilities.php
And android side, what should I do ?
You need to query the capabilities endpoint as described here: https://github.com/nextcloud/server/blob/687d7686c19d03d7a2baceeeb0980dc30e28972b/core/openapi.json#L1207. Of course you will still have to query the check endpoint as a fallback for a while.
Clients can currently detect if the app is installed via the check endpoint. That is an unusual pattern and apps should instead expose capabilities to let clients know that they are available. Please consider exposing a capability and deprecating and eventually removing the check endpoint.