Question: how to transfer messages to iphone xs?
Answer: On your old iPhone go to Settings > [Your name] > iCloud. Find the Messages option and toggle it to green (Two-factor authentication should be enabled). On your new iPhone XS/X/8, sign in with the same iCloud account and make sure that both of the iPhones are connected to Wifi network.