Even with autosync enabled, I need to enter the app to upload photos

Maybe this is the reason:

As an alternative I use FolderSync - this also supports Nextcloud via WebDAV and seems to work fine so far also with automatic upload of new photos in the background.