Hi everyone
I just had the same with a new app I was developing, but I was 100% sure, my code is correct. I decided to publish the app anyway, and hoped it works when the app goes live. So I put the app into appstoreconnect and sent it for review. After a day it was rejected with screenshots showing again the same issue, the reviewer asked me to "improve the user experience".
And finally the good thing was... I immediately tested it again without any change, and ... it worked.
I re-submitted it without any change, let the reviewers know, that it must be some kind of issue at Apple, and that I did not do any code change, and 24h later the app was approved and functioning.
It might not be the nice way, but maybe it indeed helps just to do this review cycle to get it working.
Cheers