Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 2.83 KB

DEEP_LINK.md

File metadata and controls

53 lines (33 loc) · 2.83 KB

Playfff - Deeplink

About

Playfff is the middleware to help Play SRG mobile applications understanding Play web urls.

Compatibility

Convert a web url to application url

The conversion is done with a javascript function, included in the parsePlayUrl.js file. The file is downloaded with the GET API.

V1

Function is: parseForPlayApp(scheme, hostname, pathname, queryParams, anchor):

V2

Function is: parseForPlayApp(scheme, hostname, pathname, queryParams, anchor, supportedAppHostnames):

  • Parameters: the web url to parse, splitted in variables.
  • supportedAppHostnames: an optional array to share the supported application url hostnames. Required to support the new micropage or page hostnames conversion.
  • It returns an application url, conform to Play iOS application URL and Play Android custom URL specifications.
  • An optional preview=true query parameter can be added to the returned application url. It's related to PAC (Play Application Configuration) and it's used to have a preview of the content page.
  • If the JS script returns the unsupported hostname, the application can share it to the server using the POST API.

Get updated

The server pulls IL every 5 minutes to have updated contents (topics).

How to test

Curently, unit tests are a on private repository, accessible via a public url:

To test Play web url conversions, a tool is available: