I need to populate the SMS body depending on the button clicked in the iOS web app.
Any way i can do this ?
something like :
a href="sms:1234" body = "hello world !">Send SMS /a
The definitive answer can be found here:
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/SMSLinks/SMSLinks.html#//apple_ref/doc/uid/TP40007899-CH7-SW1
Related
I would like to get support for my question,
I tried
href="sms:?body=YYYY"
href="sms:;body=XXXX"
both ways doesn't seems to work on iOS8, any help ?
It seems iOS 8 does it differently by using & for seperating sms and body try
href="sms:&body=ZZZZ"
Inside the app I have a MFMessageComposeViewController presented with pre-defined text. Inside this text I have a link, for example: "Hey, visit this site https://stackoverflow.com/"
In HTML we can do next:
site
And it will make "site" clickable. Is there any way to do inside the app, so that recipient will receive iMessage with text link, instead of full https://stackoverflow.com/ ?
SMS does not support HTML or URLs, just plain text.
All you can do is just add the URL to message and then it's up to the Message app to recognise the URL and allow the user to click on it.
I'm trying to show apps from UIDocumentInteractionControllerDelegate , default apple apps like; sms, email or UIPasteBoard (Facebook and Twitter is optional) . Just like the similar of Dropbox app :
How can I handle this kind of situation? I've done already open apps from their UTI's, open just email or just sms but I don't how to show all of them in one sheet.
Thanx
I believe you're looking at an UIActivityController instead of a UIDocumentInteractionController, which I believe Apple is trying to phase out.
Check out the docs here https://developer.apple.com/library/ios/documentation/uikit/reference/UIActivityViewController_Class/Reference/Reference.html
You should try QLPreviewController. This will give you desired result.
https://developer.apple.com/library/ios/Documentation/NetworkingInternet/Reference/QLPreviewController_Class/Reference/Reference.html
I am looking to make a skype link for a mobile site, is there a way use <a href=" to make it launch skype and add or call a user?
If your mobile site is (generally) used by iOS devices, you can use :
Call me on Skype
Apple iOS devices automatically recognizes intents in link with Skype and FaceTime.
You can use skype:<username|phonenumber>[?[add|call|chat|sendfile|userinfo]] or callto:<screenname|phonenumber>, according to this wikipedia page:
http://en.wikipedia.org/wiki/URI_scheme#callto:
To turn your skype id into a link so people can add you to their contact list use the following:
SKYPENAME
Replacing SKYPENAME with your own of course.
Call the Skype Echo / Sound Test Service
According to Skype documentation
You can use Start chat
Allowed query parameters:
chat - start a chat
call - start a call
add - add person to the contacts
userinfo - view user's profile
voicemail - leave a voice message
sendfile - send a file
I can launch my app if I embed a url in an SMS and then the user clicks on the url from within the message app. I have this all working.
What I would like to be able to do however is send an MMS to the device which contains a number of image(s) and text filling the screen and when the user clicks on the url within the MMS my app is launched same as it is if clicked from within an SMS.
Is it possible to mock this up so I can see it working? i.e. how could I create an MMS containing a working active link to demo a proof of concept (I'm not talking about creating an MMS programatically on iOS, just how to create one containing my app's url to send to the device)?
Edit: This answer was written under the assumption that implementation details were required for the URL handling part. I'll leave the technical details here for future Googlers.
Here is a link to a forum thread which seems to indicate you can't send MMSes from the iPhone programmatically (I know you said you didn't want to know this anyway, but it's here for completeness). The suggestion is to use a message provider's MMS gateway directly (e.g http://www.smsglobal.com).
Instructions on how to get a hyperlink into an MMS are here. You can just write it in plain text, or use an anchor: <a href="myapp://"> Not 100% sure the iPhone will properly parse those anchor tags in an MMS though.
Read this article. The gist is that you add a "URL types" row to your Info.plist and set it to any valid protocol, say myapp, and then a user opens a link in an MMS to a myapp URL. Article excerpt:
myapp://
myapp://some/path/here
myapp://?foo=1&bar=2
myapp://some/path/here?foo=1&bar=2
The iPhone SDK, when launching the application in response to any of the URLs above, will send a message to the UIApplicationDelegate.
If you want to provide a custom handler, simply provide an implementation for the message in your delegate. For example:
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
// Do something with the url here
}