Upload
gaprot
View
112
Download
2
Embed Size (px)
Citation preview
Copyright © Up-frontier, Inc. All rights reserved.
iOS10 NEW
• Location
• Web (location)
• Media App
• Ride-sharing
3
Copyright © Up-frontier, Inc. All rights reserved.
<iOS10
• proactive assistant (9)
• deep search (9)
• NSUserActivity Handoff (8)
• NSUserActivity Spotlight (9)
4
Copyright © Up-frontier, Inc. All rights reserved.
⽬次
• Location Suggestions
• Media App Suggestions
5
Copyright © Up-frontier, Inc. All rights reserved.
⽬次
• Location Suggestions
• Media App Suggestions
6
Copyright © Up-frontier, Inc. All rights reserved.
Location Suggestions
• 位置情報に関するサジェスト、アプリ連携
• 通常マップへの連携⽅法は割りと簡単
• NSUserActivityのmapItemにセット
• WEBページでschema.orgにそってセット
8
Copyright © Up-frontier, Inc. All rights reserved.
NSUserActivity
• NSUserActivity
• mapItemが追加されている
9
Copyright © Up-frontier, Inc. All rights reserved.
NSUserActivity
let cllocation2d:CLLocationCoordinate2D = CLLocationCoordinate2D(latitude: 43.0, longitude: 141.0) let placemark = MKPlacemark(coordinate: cllocation2d) let item:MKMapItem = MKMapItem(placemark: placemark) item.name = "UPFT Loc" item.url = URL(string: "http://www.up-frontier.jp") let activity = NSUserActivity( activityType: “jp.com.upft.proactive.view-location" ) activity.mapItem = item self.userActivity = activity
10
Copyright © Up-frontier, Inc. All rights reserved.
schema.org• Note that Safari supports both JSON-LD and
Microdata encodings of Schema.org vocabularies.
• 2つの形式に対応、HTMLページに記載
• Microdata
• JSON-LD
11
Copyright © Up-frontier, Inc. All rights reserved.
schema.org
<div itemscope itemtype="http://schema.org/Corporation"> <div itemprop="name">アップフロンティア株式会社</div> <address itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> <span itemprop="postalCode">150-0001</span> <span itemprop="addressRegion">東京都</span> <span itemprop="addressLocality">渋⾕区</span> <span itemprop="streetAddress">神宮前5-7-20 神宮前太⽥ビル 4F</span> <meta content="JP" itemprop="addressCountry"> </address> </div>
12
Copyright © Up-frontier, Inc. All rights reserved.
schema.org<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Corporation", "address": { "@type": "PostalAddress", "postalCode": "150-0001", "addressRegion": "東京都", "addressLocality": "渋⾕区", "streetAddress": "神宮前5-7-20 神宮前太⽥ビル 4F", "addressCountry": { "@type": "Country", "name": "JP" } }, "name": "UPFT" } </script>
13
Copyright © Up-frontier, Inc. All rights reserved.
Location Suggestions• 連携箇所
• App Switcherでのバナー表⽰
• mapアプリ表⽰時のサジェスト
• Quicktypeのサジェスト
• iMessageでは特定ワードで補完候補表⽰
• UITextFieldと情報属性(textContentType)⼀致が必要
14
Copyright © Up-frontier, Inc. All rights reserved.
Location Suggestions• Quicktypeのサジェスト
• textContentTypeの設定必要
18
Copyright © Up-frontier, Inc. All rights reserved.
⽬次
• Location Suggestions
• Media App Suggestions
19
Copyright © Up-frontier, Inc. All rights reserved.
Media App Suggestions
• Mediaを扱うアプリに対するサジェスト
• ある条件下で推薦するアプリとして扱う
• スポットライト、Today View
• ロック画⾯上に表⽰する
21
Copyright © Up-frontier, Inc. All rights reserved.
条件• 推薦条件
• ヘッドホンやBluetoothデバイスを接続
• CarPlayに接続
• 位置(⾃宅/職場)を検知した際
かつ利⽤状況による
22
Copyright © Up-frontier, Inc. All rights reserved.
対象にするには?
• メディアを扱う(Audio/Video)
• MPPlayableContentManagerに対応する
24
Copyright © Up-frontier, Inc. All rights reserved.
MPPlayable ContentManager
• playableContentManager
• ロック画⾯で推薦時に通る
• MPNowPlayingInfoCenter
• nowPlayingInfoに情報をセットする
• コントール
• バックグラウンド再⽣と同じ
25