Closed Bug 1074069 Opened 10 years ago Closed 7 years ago

[Messages] If we get an error when the user tries to send, check if PIN is required

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect, P3)

x86_64
Linux
defect

Tracking

(blocking-b2g:-, tracking-b2g:backlog, b2g-v2.0 affected, b2g-v2.0M affected)

RESOLVED WONTFIX
blocking-b2g -
tracking-b2g backlog
Tracking Status
b2g-v2.0 --- affected
b2g-v2.0M --- affected

People

(Reporter: julienw, Unassigned)

References

Details

(Whiteboard: [sms-papercuts])

Attachments

(1 file)

STR:
1. Have a device with a SIM that has SIM security enabled (with PIN)
2. Always use "skip" when the PIN dialog is displayed
3. Starts the Messages app (use "skip" again)
4. Try to send a message

Actual:
* An error message is displayed, but the error message is invalid as it says the SIM is invalid. It does not say anything about the PIN required state.

Expected:
* The error message says something about the PIN required state.
Whiteboard: [sms-papercuts]
I bet if we had a link to the source where this fix would go and a mentor, this could be a good first bug.
Flags: needinfo?(felash)
Actually I'm not so sure. I don't know if we have the right permissions to look the state, where to look the state, and the error handling code is not so easy.
Flags: needinfo?(felash)
Blocks: Woodduck
Hi Bevis, is it possible to expose more information by firing another error message(or possibility to classify the reason of invalid SIM state)?
Flags: needinfo?(btseng)
I saw your reply in bug 1070476... Maybe we should move the discussion here?
Flags: needinfo?(btseng)
Hello, the logical behavior should be

1. Have a device with a SIM that has SIM security enabled (with PIN)
2. Open Message 
3. Don't show PIN code screen, user can do anything except actions that requires the use of SIM
4. User tries to do something that requires the use of SIM like send message
5. Show PIN code enter screen with explanation that in order to send message, correct SIM PIN is needed
6. PIN unlocked, continue message sending process

(the same should go with apps that uses SIM)

Is this feasible?
ni Julien :)
Flags: needinfo?(felash)
Jenny, in this bug, my goal was to have something very lighter: just display an appropriate error message when this happens.

What you propose is definitely where we need to go long-term, but this needs discussions with System peers and Gecko developers... I don't know the current logic to display the PIN panel.
We can file a separate bug for this long-term solution, and NI some right persons and/or start a thread on dev-gaia.
Flags: needinfo?(felash) → needinfo?(jelee)
Ok, in that case, I think an updated string would be enough:

To send message, please unlock SIM PIN first.
[Ok]

ni Matej for string review. Please see comment 0 for where the message appears, thanks Matej!
Flags: needinfo?(jelee) → needinfo?(Mnovak)
Triage:
Gary, Could you please have a check?
blocking-b2g: --- → 2.0M+
(In reply to Jenny Lee from comment #8)
> Ok, in that case, I think an updated string would be enough:
> 
> To send message, please unlock SIM PIN first.
> [Ok]
> 
> ni Matej for string review. Please see comment 0 for where the message
> appears, thanks Matej!

I would make it:

To send your message, please enter your SIM PIN.
[OK]

How does that sound?
Flags: needinfo?(Mnovak)
Hey Matej, it sounds weird because this dialog would not have anything to enter the SIM PIN.
Actually we should definitely explain how to enter the SIM PIN in that case. For example, pressing "home" and entering the Messages app again works.
Flags: needinfo?(Mnovak)
(In reply to Julien Wajsberg [:julienw] (PTO until 7th October, ask :steveck or :azasypkin for SMS stuff) from comment #12)
> Hey Matej, it sounds weird because this dialog would not have anything to
> enter the SIM PIN.
> Actually we should definitely explain how to enter the SIM PIN in that case.
> For example, pressing "home" and entering the Messages app again works.

I really don't know anything about how this works, I was just editing the proposed text in comment 8.

Can you give me an idea of what you think it should say/communicate?
Flags: needinfo?(Mnovak)
I'd do something like:

To send message, please unlock SIM PIN first by pressing Home and entering the Messages application again.
Flags: needinfo?(Mnovak)
(In reply to Julien Wajsberg [:julienw] (PTO until 7th October, ask :steveck or :azasypkin for SMS stuff) from comment #14)
> I'd do something like:
> 
> To send message, please unlock SIM PIN first by pressing Home and entering
> the Messages application again.

Hi Julien,

It shows the same message (as below) in two phones which are without SIM card or skipping SIM code input.
sendMissingSimCardTitle     = Missing SIM card
sendMissingSimCardBody      = Insert a valid SIM card to continue.

I think the message should be able to handle the both cases.
So we can only modify the messages without adding error handling codes.

The message may be like this:
 Title: Invalid SIM card
  Body: Please insert a valid SIM card or unlock PIN code to continue.

The index of i18n message (sendMissingSimCardTitle, sendMissingSimCardBody) should be modified as well.
ni Julien  :)
Flags: needinfo?(Mnovak)
sorry to ni wrong person.
Flags: needinfo?(felash)
It's really a question for Jenny :)

IMO if it's possible to distinguish the 2 cases, I think we should do it. But if Jenny is OK with this yet simpler solution then I'm OK too.
Flags: needinfo?(felash) → needinfo?(jelee)
Hi Josh,

I'm afraid that there isn't enough time to do localization if we change the string in 2.0m branch at this moment. Could you please help me confirm that? Thanks.
Flags: needinfo?(jocheng)
So if our decision here is changing error message to fix this issue, then we definitely need localization team aware this late string change. Another way is informing partner so they can deal with the translation.
Josh, I think what we need here is internal communication withe l10n team, or external communication with partner.
also ni stas (l10n team) for his opinion.
Flags: needinfo?(stas)
Not sure where all of this leaves us, but I'll comment on the copy in comment 16:

> Title: Invalid SIM card
> Body: Please insert a valid SIM card or unlock PIN code to continue.

Is it accurate to say that you're unlocking the PIN? Aren't you unlocking the SIM with the PIN?

Also, we don't need "code" after "PIN."

I would say:

Title: Invalid SIM card
Body: Please insert a valid SIM card or enter PIN to continue.
(In reply to Julien Wajsberg [:julienw] from comment #19)
> It's really a question for Jenny :)
> 
> IMO if it's possible to distinguish the 2 cases, I think we should do it.
> But if Jenny is OK with this yet simpler solution then I'm OK too.

It's definitely better to handle two different cases separately from UX point of view.

So for the case where user needs to enter PIN, we show dialog:

To send your message, please enter SIM PIN first by pressing Home and entering the Messages application again.
[OK]

For the case where SIM card is not valid or missing:

To send your message, please insert a valid SIM card.
[OK]

ni Matej. Thanks a lot Matej :)
Flags: needinfo?(jelee) → needinfo?(Mnovak)
Forwarding the needinfo to flod, who knows much more about the l10n timings than I do.
Flags: needinfo?(stas) → needinfo?(francesco.lodolo)
(In reply to Jenny Lee from comment #24)
> (In reply to Julien Wajsberg [:julienw] from comment #19)
> > It's really a question for Jenny :)
> > 
> > IMO if it's possible to distinguish the 2 cases, I think we should do it.
> > But if Jenny is OK with this yet simpler solution then I'm OK too.
> 
> It's definitely better to handle two different cases separately from UX
> point of view.
> 
> So for the case where user needs to enter PIN, we show dialog:
> 
> To send your message, please enter SIM PIN first by pressing Home and
> entering the Messages application again.
> [OK]

I don't think we need the word "first"

To send your message, please enter your SIM PIN by pressing Home and entering the Messages application again.
[OK]

> For the case where SIM card is not valid or missing:
> 
> To send your message, please insert a valid SIM card.
> [OK]

+1

> ni Matej. Thanks a lot Matej :)

Thanks.
Flags: needinfo?(Mnovak)
This is in an offline conversation right now, we'll update when that thread has closure.
Flags: needinfo?(francesco.lodolo)
Base on this is not trivial fix and not partner blocker.
Mark to 2.0M? and Triage again tomorrow with TAM.
blocking-b2g: 2.0M+ → 2.0M?
Flags: needinfo?(jocheng)
triage: it's not partner blocker, considering the risk and impact.
blocking-b2g: 2.0M? → -
nominate it for 2.2
blocking-b2g: - → 2.2?
Filed bug 1079690 for reworking how displaying the PIN panel works currently.
triage: it's a feature. I'll nominate to feature-b2g and let product decide.
blocking-b2g: 2.2? → -
feature-b2g: --- → 2.2?
[Tracking Requested - why for this release]:

not in 2.2 must-have scope.
feature-b2g: 2.2? → ---
tracking-b2g: --- → ?
Priority: -- → P3
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Mass closing of Gaia::SMS bugs. End of an era :(
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: