In our app, we use MFMailComposeViewController in order to generate and send an invitation message, containing some text and a deep link. Sometimes, when there is a network communication problem, the deep link can't be shortened. When this happens, after the recipient gets the invitation message, the link is broken:
I have no idea why it happens. Is there any way to fix this? By the way, if the recipient uses an Android device, the link is displayed correctly.
Related
I am using twilio to send SMS messages to phone numbers. What I am having problems with is making sure that once a user gets the message the preview of what is at a certain link actually loads in the message the user sees on the phone.
What is the proper way to send a link that automatically shows the preview?
EDIT:
I tried the open graph api. Apple does have a tech note on that. But, then, why does this link provided a proper preview in messages when I send this link to another phone? It works, and it does not use open graph.
https://i1.wp.com/www.asphaltandrubber.com/wp-content/uploads/2017/11/2018-Ducati-Panigale-V4-29.jpg?ssl=1
a couple of things you can try
have the link at start of the message or end of the message
the link should be properly formatted with either http:// or https://
iOS uses The Open Graph protocol to support what image to show in the link . http://ogp.me/
This screen display an authentification code even on the lock screen.
I've googled it and found absolutely nothing about it. I even don't know the name of the component.
Is it possible to be a special push notification ?
I need to know which class provide this view that is displayed on the lockscreen.
Found the answer !
This is a "Class 0 sms", that is displayed as full screen by the OS.
Class 0 SMS: This message is displayed on the mobile phone immediately
and a message delivery report is sent back to the SC. The message does
not have to be saved in the mobile phone or on the SIM card (unless
selected to do so by the mobile user). This type is also referred to
as Flash SMS.
See for details :
http://www.ozekisms.com/index.php?owpn=544
Is there anything special I need to do when sending http links as part of sms message from IOS programmatically?
When I send a message that includes a link http://echowaves.com/mobile?token=123123 the first part of the link shows as a link, but everything after ? (including ?) shows as a plain text. So when the link is clicked the token parameter is not included. I thought, maybe there is a problem with SMS client that does not know how to parse the links, but the same exact behavior is experienced in IOS as well as on Android. Also, when I try to send the SMS message and manually type the link with parameter -- it get's interpreted properly when received.
Wacky,
just retyped the whole string manually by hand -- and it works. Perhaps some special character or encoding was getting on a way after copy paste string around.
I have an app that presents a MFMessageComposeViewController for sending a text message for a predefined number. The current user already has an SMS history with this number, so already existing SMS with this number show up in the composer. Some of this SMSs have links inside.
Problem is:
When I click on the link from my app message composer the link does nothing.
BUT when I open the SMS app, select the contact and click the links in old messages it opens in Safari.
Question is: is there any way I can handle the tap on the links inside an MFMessageComposeViewController?
From what I can tell this is not currently possible.
And you are also not aloud subclass. Since there are no other public messaging Apis you are out of luck on this one. - at least on this version of ios 7.
do anybody know about how to read a SMS in iOS with Xamarin iOS ? and then I want to pass a string from that SMS to the application via link. For example when user click the link in the SMS it will pass a string value to the application and in the application a method is waiting to trigger that.
It's impossible to read incoming or storing SMS's due to iOS security restriction.
Although you can't directly intercept SMS messages, you can create a custom URL scheme so that if a user clicks a link in your message it will launch your app.
If Jason's answer of using a link to the app, there is an alternative. In my case a web service is sending down a code (two stage auth). When I know its going to be coming, I prompt the user to looks for it, and when it comes long press the message bubble, and copy the whole message to the pasteboard.
When the user switches back to my app, I've set a flag to look at the pasteboard, I see the message, extract out the code, and if it "works" the user can continue without further interruption.
Not as elegant as Jason's answer, but if you cannot control the sms content, its an option.
It is possible from iOS 12
textField.textContentType = .oneTimeCode
Please check this doc