Question: how to transfer data from one iphone to another with an app?
Answer: Turn on your new iPhone and follow the setup instructions.
On the Apps & Data screen, tap "Restore from iCloud Backup."
When your iPhone asks you to sign into iCloud, use the same Apple ID that you used on your previous iPhone.