swift - Open the list of SMS messages on iOS -
in app i'm creating want open messages app, showing list of received messages. know can open app create sms code:
if let url = nsurl(string: "sms:") { if uiapplication.sharedapplication().canopenurl(url) { uiapplication.sharedapplication().openurl(url) } }
this open messages app, blank new message. there way launch messages app , show received messages?
- i don't want access them
apple documentation sms url scheme states scheme
sms:
i don't want send 1 using mfmessagecomposeviewcontroller class
- for mail can
let url = nsurl(string: "message://")
, open mail app
here's usecase: during registration i'm sending verification text using textmagic. want add button on screen user open his/her messages app.
you can see here sms scheme url doesn't provide possibility add body mail.
to achieve goal should use mfmessagecomposeviewcontroller
.
Comments
Post a Comment