Closed Bug 897375 Opened 11 years ago Closed 8 years ago

[Bluetooth] enable share URL to other devices via Bluetooth

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.5+, b2g-master affected)

RESOLVED WONTFIX
feature-b2g 2.5+
Tracking Status
b2g-master --- affected

People

(Reporter: iliu, Unassigned)

Details

(Keywords: feature, foxfood)

Attachments

(1 file)

STR:

* Open browser app
* Navigate to a web site
* Click the share button in the bottom toolbar

Expected:
* Bluetooth app handles the activity correctly
confirmed it reproduce in master build
Gaia:     eb48d3682e045c94b650323b5a55898afdf3e3b1
  B-D     2013-08-28 22:14:28
Gecko:    http://hg.mozilla.org/mozilla-central/rev/416075f77249
BuildID   20130828040202
Version   26.0a1
PVT Master build in unagi 2013/08/28

I think it should try to turn on or pair bt if there is no paired devices?
The behavior I expected is like gallery but not like just failed and error out.
As per https://bugzilla.mozilla.org/show_bug.cgi?id=895480#c1 the "url" will need to be shared as text file.
It should be better if we share the "url" with .html file it would be better,because most of the devices will support the.html format including Android.
Flags: needinfo?(iliu)
Bluetooth is supporting to share all kinds of files now. We check the blobs required only. https://github.com/mozilla-b2g/gaia/blob/master/apps/bluetooth/manifest.webapp#L24-L27

For URL, I think we have to ask browser app for implementation. Browser app have to make a package with the specific URL. The format of file is needed to discussion. NeedInfo dev from Browser app.
Flags: needinfo?(iliu) → needinfo?(bfrancis)
A URL is not a binary blob, it is a string. The browser app has a share button which fires a "share URL" web activity which other apps like EMail use. Are you suggesting that we should add a "share with Bluetooth app" button to the browser which instead shares the URL as an HTML file?

A better implementation would be if the Bluetooth app handled the existing share URL web activity and created the binary blob it needs from the URL.
Flags: needinfo?(bfrancis) → needinfo?(iliu)
To implement this feature i have the following queries.

Case1: "BT Send"

Browser as will send the URL as string format and currently BT app will accept share in the form of blobs only.
So we can modify the BT app,when ever it receives the URL as string we need to pack the URL as a file.
But here which file format we need to pack is the question.
(In Android case the file format will be .html,will all other OS will support the same?,this case also we need to consider)

Case2: "BT Receive"

Once the BT receives the Packed URL in some file format..will application will unpack the received file and show it.

So asking Wayne for needinfo for asking concern person to support this feature.
All these things are discussed with iliu@mozilla.com in chat.
Flags: needinfo?(wchang)
Flags: needinfo?(wchang) → needinfo?(bhuang)
blocking-b2g: --- → backlog
Flags: needinfo?(bhuang)
blocking-b2g: backlog → ---
Note: This is meaningful feature for polishing share activity.
Flags: needinfo?(iliu)
now ni josh...
Flags: needinfo?(jocheng)
Hi Gasolin,
2.5+
Thanks for your help per offline talk!
feature-b2g: --- → 2.5+
Flags: needinfo?(jocheng)
As comment 6, to share the URL via bluetooth we need wrap the URL to a certain format (most likely a *.html). ni Harly(UX) if there's any consideration from UX.
Assignee: nobody → gasolin
Flags: needinfo?(hhsu)
Just an idea:

Since it's currently the UX discussion time,
As a user, it would be extremely handy if this feature can be further combined with sort of functionality such as NFC or "Bump", to smooth the whole URL share procedure 

Hope this can be more efficient than simply dropping URL to the IM(line, whatsapp,...)  ;-)
Blocks: 1183509
We already support sharing current browsing web page via NFC though. 

But we do lack a simple way to dropping URL to the IM.
Tried sharing URL from android device.

1. paring devices (android + flame),
2. share url from Android firefox browser
3. The URL will be wrapped as `bluetooth_content_share.html` (as attachment)
4. After received, click notification should open the html file in browser

Unfortunately step 4. returned `we did not support such MIME type` message. It's an extremely bad experience when I use a web-based OS which said it can't open a html file :( 

File bug 1183509 to solve it.
From an UX perspective, we can wrap the URL to any kinds of formats as long as when user click on the received file on notification, it should open up the browser and go to that URL. Also, we should be able to receive URL from android on Firefox OS devices and open up the bluetooth_content_share.html as well. Thanks :)
Flags: needinfo?(hhsu)
No longer blocks: 1183509
Keywords: feature, foxfood
Summary: Bluetooth app supports to handle Share URL activity to other devices → [Bluetooth] enable share URL to other devices via Bluetooth
Assignee: gasolin → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: