Hi,
I tried using an http API
by following the instructions given in Control Roon from the iOS Notification Center as a widget, and it works much better than what I did.
I can safely say now that my solution is wrong, or at most, not optimum.
Cheers,
Ludovic