Question: how to transfer messages to iphone xr?
Answer: Turn on your new iPhone.
Go through the setup process. ... 
When asked, tap Restore from iCloud Backup and Next. ... 
Your new phone will start to download everything from your back-up, including all your messages.