Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

SMS fallback behaviour when other directory users are offline

Open punnie opened this issue 12 years ago • 85 comments

Tried this with a friend:

  • Both registered in the directory so we could exchange messages through PUSH
  • Successfully sent each other messages
  • Friend goes offline
  • All messages sent hold until friend goes online again

Shouldn't the SMS fallback be kicking in in this type of situations? Is this expected behaviour? Wouldn't it be better if TextSecure noticed friend is offline and prompted me if I wanted to send an (presumably) instant SMS instead?

Cheers.

punnie avatar Feb 25 '14 11:02 punnie

I agree, this use case needs a better solution. Related to #671.

virtualritz avatar Feb 25 '14 12:02 virtualritz

Duplicate of #677.

fwalch avatar Feb 25 '14 12:02 fwalch

The concept of "online" doesn't really exist in an asynchronous world. The only thing we know is whether the sending device has network connectivity at the moment a message is sent. Beyond that, the push framework tells us nothing about delivery. This is also how iMessage works, and they have much better control over their push framework than we do.

I think the best we can do here is to provide a "delivery confirmation" indicator so that the sender knows whether a message has reached the remote device or not.

moxie0 avatar Feb 25 '14 16:02 moxie0

That's unfortunate. People have different expectations when using different transports to deliver their messages. I, for one, expect an SMS to be delivered even if the destination is abroad on a trip, deprived of a mobile data connection. If TextSecure, which is my default SMS app, doesn't at least alert me if the message isn't delivered in a defined time window, I'd rather use it for WhisperPush messages only.

Delivery confirmation is good, but TextSecure also needs a mechanism to manually switch to the SMS transport when deliveries don't happen.

Of course a delivery failure notification would be best, but it's understandable it can't happen when that's part of a system TextSecure doesn't control.

punnie avatar Feb 25 '14 17:02 punnie

I would also love to be able to manually force the use of SMS and several friends asked me if it's implemented already. For most of them the usecase for that looks like this: The receiver turns off wifi and mobile internet to not be disturbed by instant messages or mails while doing important work. The expectation is, If somebody really needs to contact you, they either call you or write you a text message. Many people I know use exactly this behaviour at work and others know that. So when it's working hours and the other one doesn't immeadiatly reply to your push message, and you have to contact them, forcing TS to send an SMS is the next best option. No need for TS to know if they are offline.

generalmanager avatar Feb 27 '14 16:02 generalmanager

I think the best we can do here is to provide a "delivery confirmation" indicator so that the sender knows whether a message has reached the remote device or not.

If delivery confirmations (https://github.com/WhisperSystems/TextSecure/issues/957) were available, then TS could easily solve this issue:

  1. Push the message.
  2. If delivery confirmation doesn't arrive within x seconds, send the message via SMS.
  3. If a PUSH message is received that is identical to one received via SMS earlier, ignore it.

In any case, it should be possible for users to configure on a per-recipient basis whether PUSH or SMS should be preferred. (And it should be possible to have Tasker or SecureSettings manipulate those settings for scripting purposes.)

peti avatar Mar 03 '14 19:03 peti

In my opinion, it would be best if the fallback wasn’t automatic. An alert in the notification area prompting the user if he would wish to re-send the message via SMS would suffice, and would possibly avoid SMS charges in cases where the user doesn't notice the automatic fallback behaviour.

+1 on the per-recipient basis control.

--  Pedro Coelho http://pedrocoelho.pt

On 3 Mar 2014 at 19:02:42, Peter Simons ([email protected]) wrote:

I think the best we can do here is to provide a "delivery confirmation" indicator so that the sender knows whether a message has reached the remote device or not.

If delivery confirmations (#957) were available, then TS could easily solve this issue:

Push the message. If delivery confirmation doesn't arrive within x seconds, send the message via SMS. If a PUSH message is received that is identical to one received via SMS earlier, ignore it. In any case, it should be possible for users to configure on a per-recipient basis whether PUSH or SMS should be preferred. (And it should be possible to have Tasker or SecureSettings manipulate those settings for scripting purposes.)

— Reply to this email directly or view it on GitHub.

punnie avatar Mar 03 '14 19:03 punnie

+1 on fallback not being automatic. It's something that depends on the situation, therefore I'd like a "Proceed via SMS"/"Try again later" popup every time (with "later" to be defined somewhere in the settings).

donjoe0 avatar Mar 03 '14 21:03 donjoe0

Personally, I would like to be able to choose whether the application falls back to SMS automatically or not, and I'd like to make that choice per recipient.

peti avatar Mar 03 '14 21:03 peti

Agree, the perfect option would be:

  1. I want to send an sms message and choose this communication channel by long-press the send icon; this will be the next preferred (or forced due to missing data connection as now is) channel until further changes

  2. i receive a message via sms in a data conversation and a pop-up show up warning me and asking if i want to switch to sms as preferred channel until further changes (like my friend start again to use data connection)

amigthea avatar Mar 05 '14 18:03 amigthea

If delivery confirmation doesn't arrive within x seconds, send the message via SMS.

Remember that an iOS app would not be able to confirm delivery unless the app has been active very recently. Therefore most messages to such devices would be sent as SMSes as well.

mreppen avatar Mar 05 '14 21:03 mreppen

I don't like the idea of automatically falling back to SMS, because I've got many contacts that live in foreign countries. So I would make this optional in any case.

What about ack-ing every message? Couldn't we push that too? And try to re-send it periodically?

makubi avatar Mar 11 '14 21:03 makubi

Hi Buddies! I already studied these issues about SMS x PUSH channels: #625, #671, #677, #678, #697, #699, #910, #919, #940, #984, #1065, #1066, #1116, #1144, #1155, #1129. Above @moxie presented a solution that, combined with the alternative (not present yet) to the TextSecure user (sender) choose to send a PUSH or a SMS message, would resolve as a charm the problem presented in this issue, I guess.

See, if the message is sent over PUSH, and the sender could know that the message was sent to the cloud (one check) but, passed some time, it already was not sent to the receiver (double check), it should be the user, himself, who would choose to send another message over SMS, or even just wait. The reciprocal is true: the user may have sent a SMS that was lost forever in the telcom operator cloud and, passed some time without the confirmation of deliered, choosed to use a more trustable channel (despite the dependence of Internet connection available to both sides) with respect to the certainty that the message will be properly delivered some time, even if just some day in the future, and that the one check and double check confirming the status of the message really works.

So, I know that it's impossible in this stage of the game, to change the conception embedded in TextSecure v2 that the SMS is a fallback, a degradation, instead of an alternative with its pros and contras, and with the great pro that it don't depends that the receiver be connected to Internet just now to receive a message. There are users that would like to renegate WhatsApp and Telegram, only. There are users that would like to change SMS encrypted and use TextSecure as it SMS default client. There are users (my case!) that want both!

Thereby, I think it's not a good idea to establish a priorization of channels (PUSH is better than SMS in which cases, by the way? ;), and that the user should, himself, to choose in real time, as each particular case of his everyday life, to choose which channel is more appropriate to be used: SMS or PUSH. Dozens of combinable variables can change it for each user.

I could list dozens of use cases where it's better to send SMS than PUSH, and vice versa, and try to demonstrate that the choice should be equally available to the user, and not the widely proposed formula "TS try to send first over PUSH and, if some predetermined criteria happens, then TS send over SMS".

Proposal: the one check and two checks solution to inform that a message was sent to the cloud (Internet or SMS Network) and then delivered (or not!), both to PUSH and SMS messages, added a way to easily choose the channel to send the messages, should easily resolve all these issues, I guess, independently of the user origin: Internet messengers world, or SMS world. It would be very usefull for both, apart from that it would be an innovation if compared to what all the other apps do! =)

Do we have consensus about it? If not, I would be very grateful to know different ideas of mine.

My 2 cents Guys! By the way: thanks for all the great job! Hugs!

oiceberg avatar Mar 17 '14 08:03 oiceberg

@leandrosalvador I am all for PUSH as the preferred transport. There are some legitimate usecases for SMS, but there is a reason why WhatsApp alone sends more messages a day than all SMS are sent by all carrieres worldwide. Those are just the most important ones:

  • They aren't free in many parts of the world, e.g. Europe, Asia and South America.
  • They can't transfer images, videos or arbitrary files (MMS are humongously expensive)
  • They suck for group chats (MMS costs apply again)
  • They leak metadata to the carriers (see #838 )

Because SMS are sometimes preferable over push messages, I opened #919. If someone has free SMS and doesn't want to use the data channel for whatever reason he can turn it off.

If the improvements to the data channel to remedy the "receiver offline" case discussed here are implemented, I see absolutely no reason to show SMS as an equal choice to push.

I have never ever heard from anybody who wanted to always choose the transport for each message with both options there. And even then, #919 solves this with one long click on the send symbol.

To add another button or something like that simply clutters the UI and unnecessarily confuses people. That should be avoided at all cost.

generalmanager avatar Mar 17 '14 09:03 generalmanager

@generalmanager, thanks for your fast answer guy! I accept your assumptions, and particularly, I also would prefer PUSH than SMS in every cases that (i) I can assegure that the message is properly delivered (double checked available) or (ii) I'm not worried about if the message will arrive instantly to the receiver. The soluction proposed in #919 (long press on the send icon) would be good enough in my opinion, specially because it treats the choice contextually, to each message, and not to the entire application.

Actually, as you know, the long press on the send icon opens a pop-up with the "Send unencrypted" option which, once clicked, doesn't do what it would be supposed to do: in fact, it sends an encrypted message via PUSH channel.

I think the correct option should be "Send encrypted SMS", considering the fact that this option is just available between TextSecure users with PUSH mode on, don't you agree?

oiceberg avatar Mar 17 '14 10:03 oiceberg

@leandrosalvador

I think the correct option should be "Send encrypted SMS", considering the fact that this option is just available between TextSecure users with PUSH mode on, don't you agree?

Yep, that's why I created #919, where I root for this exact behaviour.

generalmanager avatar Mar 17 '14 10:03 generalmanager

I fully agree with @generalmanager .

Sending SMS would be too expensive in my case, not even thinking about MMS. Normally, I also like to fine-tune every part of my applications, but this would not target the masses (which is what we should do). Maybe there are solutions to support both, like an "export mode" or something in the future, but keeping the UI as simple as possible is way more important.

I think the only important feature that is currently missing is a delivery confirmation, like @moxie0 mentioned before + an automatic delivery as soon as the recipient is reachable again.

makubi avatar Mar 17 '14 21:03 makubi

Aloha @makubi! Thanks for interact! I understant that in your cases, makes sense to prefer send messages via data channel than via SMS channel and, consequently, you would choose to prioritize DATA than SMS in architectural choices about the TextSecure course. However, this is not the same case everywhere in the world. In Brazil, for example, it is most common to find free SMS packages available, than hiring data plans.

My consideration just want to put on the table that what is a reality for some persons is not necessarily a reality for all people around the world. I personally, prefer to use DATA channel than SMS, but 98% of my contacts in Brazil don't use TextSecure, 70% not use even WhatsApp, but everybody uses SMS as a reliable mechanism for instant communication.

It is because I ask all of you that not degrade the SMS over the DATA channel. In Brazil an SMS costs around USD 0.02, to give you an idea, and 3G really sucks yet, besides costing super expensive.

I believe that in Brazil will be easier to bring users to the TextSecure as an excellent SMS client that allow encrypted SMS, than as a substitute for WhatsApp for now, and I'm an advocate in favor of using the TextSecure in my circles.

An ordinary postpaid combo of voice + data + SMS in Brazil (for example, Vivo operator), costs about BRA 115 (USD 50), which offers: 60 minutes to others operators + 1GB over 3G + unlimited SMS (to any operator). Check yourselves if you want, ok? =) http://goo.gl/La1gzq

An ordinary prepaid combo, on the other hand, costs about BRA 28 (USD 12), which offers: zero minutes to others operators + 300MB over 3G + unlimited SMS (or BRA 0,05 = USD 0,02 to other operators). It's available to be checked at http://vivotudo.com.br/ ok? :)

Really: SMS pump some places in the world! Data channel is very expensive and slow in Brazil, not worth.

Hugs!

oiceberg avatar Mar 18 '14 04:03 oiceberg

To complement what @leandrosalvador said. Here in Sweden we have pretty much the same plans as his first example. I believe that most people still use SMS over the different data based IM apps. I might be wrong though, it might depend on the age of the users. If someone could help me verify that it'd be great!

On another note, I always turn off data on my phone to save battery (2 days -> 5-6 days), so a per contact option for my friends to choose SMS when messaging me would be great.

Prillan avatar Mar 18 '14 08:03 Prillan

Well, here in Germany it´s the other way ´round. SMS are more expensive (1 SMS= 9 ct) then a mobile data flat..so the option "Allow outgoing SMS to ->Non-TS users" is more then welcome.

chuegel avatar Mar 18 '14 08:03 chuegel