Deleted text messages can generally be restored on both Android and iPhone devices by using third-party apps. iPhone users may also be able to restore text messages using iCloud or iTunes backups.
Several apps are available for download to restore deleted text messages for both iPhone and Android users. These are generally paid apps, although they vary in price. It's important to note that these apps are not guaranteed to be effective, especially if the user waits too long to attempt to recover text messages. Waiting allows time for the messages to be overwritten by new files in the phone's memory.
In addition, iPhone users may be able to recover deleted text messages by restoring backups saved in iTunes or iCloud.