Keeping purchased apps between transfers of phones and apple ids
I recently got a new iPhone and noticed that many of the apps i had downloaded weren’t “remembered” as previous downloads. When I checked out the problem remembered that i had switched between a couple apple id’s throughout 3 iPhones. Doing a back up as usual wouldn't fix the problem entirely, since I'd get into the problem of getting notified that the specific app is downloaded with another apple id. This causes some barriers some times. I would just re-download the apps, but the real problems are the paid apps. Since the apps doesn’t show up as previous purchases id have to pay for them again…
How can i not pay for the apps a second time, whilst being able to re-download them?
iPhone XS Max, iOS 14