LoginSignup
28
30

More than 5 years have passed since last update.

iOS9 で Universal Links が動かない

Last updated at Posted at 2015-07-24

はまった

ここの通りにやっても動かなかった。

動作環境
  • Xcode 7.0 beta 3 (7A152u)
  • iphone5 実機 iOS9

はまった点は2点

  1. jsonファイルを何の証明書で証明するか

    • json ファイルを置くサイトの証明書で動いた。 apple の開発証明書でいけると書いてある記事もあったがいけなかった
  2. app インストール時に app に書かれたドメインの apple-app-site-association を読みに行くはずだが読みに行ってくれない

    • applinks:hoge.comAssosiated Domain に書けばいいとみんな書いていたが、それだけでは読みに行ってくれなかった
      • webcredentials:hoge.com も書いたら上手く行った

参考にしたサイト

http://engineering.pinterest.com/post/116646224624/shared-web-credentials-a-simpler-way-to-log-in
http://techlife.cookpad.com/entry/2015/06/05/110000
http://sonson.jp/blog/2014/09/27/Handoff3/

おまけ

ここのサンプルソースで動かしてみるのもいいかも
https://github.com/sonsongithub/HandoffSample
クックパッドの app が既に対応していたので動きは参考になりました。

28
30
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
30