Closed Bug 1113495 Opened 5 years ago Closed 5 years ago

[Stingray][Smart-system] Accept specified URL from home on opening app

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rexboy, Assigned: johnhu)

References

Details

(Whiteboard: [ft:conndevices])

Attachments

(1 file)

We need smart-system accept a specified URL when launching an app.
For example, it can specify TV-app to launch a specified channel when
opening.
This should be done through IAC/Activity (Should be IAC I guess but need
to be clarified)
Assignee: nobody → im
Rex,

This patch accepts webapp-launch information through IAC. The proposed API is:

IAC name: customlaunchpath
Data Parameters:
  {
    manifestURL: "app's manifest URL",
    timestamp: current timestamp (useless now, but for webapp-launch compatible)
    url: "the url to launch (full path)"
  }

Please review it. Thanks.
Attachment #8540018 - Flags: review?(rexboy)
Depends on: 1115611
Blocks: 1115611
No longer depends on: 1115611
Comment on attachment 8540018 [details] [review]
use iac to accept app launch

Simple & looks good to me.

If we will open it for privileged app in the future, we may need to do some safety check for what user inputted. But for now it's ok for me.
Attachment #8540018 - Flags: review?(rexboy) → review+
merged to master:
https://github.com/mozilla-b2g/gaia/commit/bae1426a331a930e0c921702fa6bfd70ebe7332a

gaia-try is all green:
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=a0f49ee1b165

I had rebased the code to latest master. But the gaia-try didn't run again correctly because the gaia-tree closed.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.