Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by d34thst4lker · Jan 07, 2015 at 12:38 AM · androidiosmobilemessagessms

How to use Application.OpenUrl("sms") for multiple numbers?

I have been looking around how to send a message for mobile devices through the OpenUrl("sms:") method and can't seem to figure out how to send to multiple phone numbers... I am trying on an iPhone with iOS 8.1.2 and I'm currently using

 Application.OpenURL(string.Format("sms:{0}&body={1}", number, WWW.EscapeURL(message)));

Also, how can I get the message in there without using WWW.EscapeURL())? Every time I use this it gives me a "+" in between each space. But if I remove the WWW.EscapeURL() then it doesn't start the message sending.

Thanks in advanced!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Umresh · Jan 07, 2015 at 07:21 AM

Try this:

  Application.OpenURL(string.Format("sms:123,456?body=Hello"));

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image d34thst4lker · Jan 07, 2015 at 02:06 PM 0
Share

That is what I have tried. I will try this again

avatar image d34thst4lker · Jan 07, 2015 at 02:16 PM 0
Share

No, this still does not work. It only adds the first number to the recipient list

avatar image DVFrance d34thst4lker · Aug 20, 2016 at 02:34 PM 0
Share

I'm right with d34thst4lker, it doesn't works for me too. Is anyone found a solution ?

avatar image
0

Answer by liortal · Aug 20, 2016 at 03:25 PM

I am not sure this is possible by using the "sms:" URL scheme.

What you can do is implement this as a plugin in native iOS code (check out the MFMessageComposeViewController class).

Here's a tutorial that shows the code needed to start the SMS app with the requested recipients: http://blog.mugunthkumar.com/coding/iphone-tutorial-how-to-send-in-app-sms/

If you require other platforms, you'll have to implement it for every platform your game has to run on.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DVFrance · Aug 21, 2016 at 01:30 PM 0
Share

Thanks for those links liortal. I took time to read it a bit and I switch to that one: https://developer.apple.com/library/ios/documentation/$$anonymous$$essageUI/Reference/$$anonymous$$F$$anonymous$$essageComposeViewController_class/index.html#//apple_ref/occ/instp/$$anonymous$$F$$anonymous$$essageComposeViewController/recipients They says

If you want to provide an initial array of one or more recipients for a message, do so before you display it. After the message is displayed you cannot change the value of this property.

So I think that's possible, I just think that I'm not using the good way :)

What you think ?

avatar image DVFrance DVFrance · Aug 21, 2016 at 04:25 PM 0
Share

I just found this that worked for me :

 "sms:/open?addresses=1-408-555-1212,1-408-555-2121,1-408-555-1221&body=/*message*/"

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Is it possible to send SMS from an action in Unity? (Mobile iOS or Android) 1 Answer

Using the Volume Control Buttons On Mobile Devices 0 Answers

Scriptable object doesn't load in the build of the project 1 Answer

Native list views on Mobile? 0 Answers

Is it possible to send an SMS without opening SMS Composer? (Android) 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges