Skip to content

Commit

Permalink
complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep Singh authored and Kuldeep Singh committed Jun 5, 2016
1 parent b665e66 commit 0125d37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plyer/platforms/ios/sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ def _send(self, **kwargs):
message = kwargs.get('message')
url = "sms:"
if recipient:
# Apple has not supported multiple recipients yet.
url += str(recipient)
if message:
url += "?" if not "?" in url else "&"
url += "body="
url += quote(str(message))
# Apple has to supported it yet.
pass

nsurl = NSURL.alloc().initWithString_(objc_str(url))
UIApplication.sharedApplication().openURL_(nsurl)

Expand Down

0 comments on commit 0125d37

Please sign in to comment.