Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow deep links into Android and iOS apps from Events #151

Open
nickevansuk opened this issue Sep 9, 2018 · 0 comments
Open

Allow deep links into Android and iOS apps from Events #151

nickevansuk opened this issue Sep 9, 2018 · 0 comments
Labels
proposal Proposed changes to the specification

Comments

@nickevansuk
Copy link
Contributor

nickevansuk commented Sep 9, 2018

Proposer

imin / mapping to Google Reserve

Use Case

Allow deep links into Android and iOS apps from Events and FacilityUses.

Why is this not covered by existing properties?

url on both Event/FacilityUse and Offer only covers web links.

Proposal

Based on schema.org actions. Allow for potentialAction to be specified on Event/FacilityUse and Offer to allow Android and iOS platform actions to be included: for example actions that would require an app to be download from the App Store.

For example asking the user to download the "Playwaze" app to book.

Example

{
  "@context": "https://openactive.io/",
  "type": "Event",
  "name": "Tai chi Class",
  "url": "http://www.playwaze.org/r/6/92204",
  "startDate": "2017-03-22T20:00:00Z",
  "activity": [
    {
      "type": "Concept",
      "id": "https://openactive.io/activity-list#72ddb2dc-7d75-424e-880a-d90eabe91381",
      "inScheme": "https://openactive.io/activity-list",
      "prefLabel": "Running"
    }
  ],
  "organizer": {
    "type": "Organization",
    "name": "ExampleCo Gym"
  },
  "potentialAction": {
    "@type": "ViewAction",
    "target": [
      /* Web URL */
      "http://www.playwaze.com/r/6/92204",
      /* Android */
      "android-app://com.playwaze/http/www.playwaze.com/r/6/92204",
      /* iOS */
      {
        "@type": "EntryPoint",
        "urlTemplate": "playwaze://r/6/92204",
        "application": {
          "@type": "SoftwareApplication",
          "@id": "284708449",
          "name": "Playwaze iPhone and iPad App",
          "operatingSystem": "iOS"
        }
      }
    ]
  },
  "location": {
    "type": "Place",
    "name": "ExampleCo Gym Kingswood",
    "address": {
      "type": "PostalAddress",
      "streetAddress": "1 High Street",
      "addressLocality": "Kingswood",
      "addressRegion": "South Gloucestershire",
      "postalCode": "BS1 4SD",
      "addressCountry": "GB"
    }
  }
}
@nickevansuk nickevansuk added the proposal Proposed changes to the specification label Sep 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Proposed changes to the specification
Projects
None yet
Development

No branches or pull requests

1 participant