Hi @Tim P Thanks for your answer.
There are not really third parties involved, but I tried to choose a better title but it seems that I cannot change my first post.
I recreated the most minimal version I could of this problem so it would be clear what problem I'm facing.
So pushing that button just works, the function is called, the string is added and an alert is shown.
I could found nothing about this in the docs.