How to send the text message form the app itself ( ionic 1 )

Here’s an example of doing that from notes app in iphone,