It seems that I have found the answer to my problem myself. In the post Joplin iOS app does not sync in Joplin Server - #10 by PeBa it was explained that you have to set the switch to True in the iOS settings under Privacy & security -> Local Network -> Joplin. After I made the settings on my iOS devices, the synchronization works perfectly.