I wonder if there is any way to send an SMS, and leave a part of the text highlighted so the user can copy. For example, the digitable line of a ticket.
I wonder if there is any way to send an SMS, and leave a part of the text highlighted so the user can copy. For example, the digitable line of a ticket.
As far as I know, SMS sending protocols do not support text formatting. The reason for this is that each device can have different treatments for the texts it receives. This was never unified (unlike things like email and MMS), so bold or italic text on one device might appear with strange characters to the user on another device.
If you need to use SMS, the best way is to do as VIVO does. It sends messages like:
Your invoice can already be paid, use the code:
XXXXX XXXXX XXXXX XXXXXX XXXXX XXXXXX X XXX
The only "highlights" are line breaks. On any mobile phone running Android or iOS, it is trivial for the user to select the bar code and copy it to paste into an IM or Internet Banking application.
I also could not copy just the SMS code.
The solution I found was to insert the code in quotation marks.
So all the bank apps I tested interpreted only the value that was enclosed in quotation marks.
The message I send looks like this:
Company A: Copy this SMS and paste it into your bank's APP to perform the payment: "99999.75021 48600.000000 56224.501017 1 77310000079009"