Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup Web Browser–to–Native App Handoff in iOS 8

I am trying to setup Web Browser–to–Native App Handoff but not having any luck. I am sure I am just missing a step. Here is what I have done

  1. Updated my bundleId with the Associated Domains option and generated new provisioning profiles on the dev site
  2. In Xcode added my domains to the Associated Domains list on the Capabilities tab
  3. Created the json.txt file with my bundleId including the team identifier
  4. Singed the json.txt file with the key and cert I use for https
  5. Uploaded the apple-app-site-association file to the root of the site

I already have Native App-to-Native App Handoff and Native App–to–Web Browser Handoff working. What am I missing?

This is the only documentation I have been working off of.

https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/Handoff/AdoptingHandoff/AdoptingHandoff.html#//apple_ref/doc/uid/TP40014338-CH2-SW10

like image 226
respectTheCode Avatar asked Oct 31 '14 15:10

respectTheCode


1 Answers

We had the same issue and spent quite a few hours to solve this.

We managed to get this solved, by adding to our JSON file the activitycontinuation key.

In the end this is how our json looks:

{ 
  "webcredentials": {
    "apps": ["TeamID.bundleIdentifier"]
  },
  "activitycontinuation": {
    "apps": ["TeamID.bundleIdentifier"]
    }
}

Make sure to validate your json always (try jsonlint.com for that) as an invalid json can easily be the reason for errors and issues.

like image 101
Lefteris Avatar answered Oct 17 '22 23:10

Lefteris