Closed Bug 1031030 Opened 11 years ago Closed 10 years ago

[Messages] URI schemes supported are inconsistent with browser: sms is not supported

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.0 affected, b2g-v2.1 affected)

RESOLVED WORKSFORME
Tracking Status
b2g-v2.0 --- affected
b2g-v2.1 --- affected

People

(Reporter: nhirata, Unassigned, Mentored)

References

Details

(Keywords: feature, Whiteboard: [lang=js])

1. tap rocketbar 2. type sms:2452453453 Expected: sms app launches a compose message to 2452453453 Actual: searches via the selected search engine "sms:2452453453" Note: 1. same thing happens for tel 2. mailto: launches email Gaia 6a1373340b40fcfe901336bc9e80676e5f2ba979 Gecko https://hg.mozilla.org/releases/mozilla-aurora/rev/82ef9bf64d87 BuildID 20140626000202 Version 32.0a2 ro.build.version.incremental=109 ro.build.date=Mon Jun 16 16:51:29 CST 2014 Flame
QA Whiteboard: [VH-FL-blocking-][VH-FC-blocking-]
Noming 2.0? based on bug 1032577 being fixed for 2.1
blocking-b2g: --- → 2.0?
I think this is actually consistent with the browser app, which will also do a search if you manually type in a tel: or sms: URL. This seems like more of a feature request than a bug, "As a user I'd like to type a tel: or sms: URL into the Rocketbar/URL bar in order to call or send a text message to a phone number". That doesn't seem like a hugely important use case as I'm guessing people would normally click on a tel: or sms: URL rather than type it. I am curious why we match mailto: as a URL and not tel: or sms: but I'm not convinced this should block the 2.0 release.
> I think this is actually consistent with the browser app, which will also do a search if you manually type in a tel: or sms: URL. Not sure how you see that, I see the same as Naoki and the relative applications launch, it is a 'regression', But agreed it definitely shouldnt be a blocker, its a niche use case, as was data:, mailto: is supported since it registers itself as a handler for mailto: urls, Julien how do you feel about adding support for launching the dialer / sms app via tel:123 urls, It seems like it would mostly just be registering an activity and pretty much the same code that is used for the current activity handling, we can detect the urls in the search app and manually invoke the activities they currently support, but it seems far cleaner to have the relative applications to contain that logic.
Flags: needinfo?(felash)
I don't know how I can register a URL handler but otherwise, yep, this sounds a good idea.
Flags: needinfo?(felash)
Its not a url handler (although thats done with navigator.registerProtocolHandler), its an activity that listens for a view type=url with a regex "view": { "filters": { "type": "url", "url": { "required":true, "pattern":"mailto:.{1,16384}" }, "disposition": "window", "returnValue": true } } Is the email one, "view": { "filters": { "type": "url", "url": { "required":true, "pattern":"(https?:|data:).{1,16384}", "patternFlags":"i" } } }, is the browser one
I'm not too worried that we don't have this in Rocketbar right now, as stated above. Let's consider this functionality for the future as it is a pretty isolated use case.
blocking-b2g: 2.0? → backlog
Wilfred, would be nice to have this in v2.1, wdyt? Shouldn't be too hard.
blocking-b2g: backlog → 2.1?
Component: Gaia::Search → Gaia::SMS
Flags: needinfo?(wmathanaraj)
Summary: [Rocketbar] URI schemes supported are inconsistent with browser: tel and sms are not supported → [Messages] URI schemes supported are inconsistent with browser: tel and sms are not supported
Summary: [Messages] URI schemes supported are inconsistent with browser: tel and sms are not supported → [Messages] URI schemes supported are inconsistent with browser: sms is not supported
blocking-b2g: 2.1? → backlog
Flags: needinfo?(wmathanaraj)
What happens if a user taps on <a href="tel:12345" /> or <a href="sms:12345" /> in the browser? And in an app? If that opens Dialer and SMS, then I don't think this is a 2.1 feature.
blocking-b2g: backlog → ---
Let's see if a contributor would like to take this :)
Mentor: felash
Whiteboard: [lang=js]
This seems to be resolved in recent v3.0 builds already. At least I could not reproduce it, sms:324234986 as well as tel:125125 start the corresponding apps (messages, dialer).
I agree ! I see an issue though: when doing this from the homescreen and canceling the activity (pressing the cross button), we're left in a blank screen. I'll close this bug, but I think a new bug should be filed for the new issue. Could you do that Nils ? This should be filed in Gaia::System::Window Manager.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Great, thx nils! :)
You need to log in before you can comment on or make changes to this bug.