i have searching and some code try but not find anything, pls let me know any one have idea
This is not possible on iOS. Apple provides no public APIs to access the users messages.