Adjust notifier to Nextcloud 17
Hello App developer,
for Nextcloud 17 the notifications API received some changes: https://github.com/nextcloud/server/pull/15040
Notable are especially:
- Strict types are checked on the method signature instead of throwing
\InvalidArgumentException
inside - A new action type
WEB
has been added, which makes the clients open the website instead of sending a request in the background - Notifier registration has been adjusted to state of the art
For the last point your App needs a patch similar to this Pull Request in the Talk app. Please see the comments on this GitHub review for detailed steps and explanations: https://github.com/nextcloud/spreed/pull/2003#pullrequestreview-262492829
Also if your app supports multiple Nextcloud versions, you need to split on this release. The old way of registering does not work in Nextcloud 17 and the new way does not work in olders. So you need to make a new release which is exclusive for >=17 and the old one should be for <=16.
Thanks for your understanding and happy hacking