Top Banner
Copyright © Up-frontier, Inc. All rights reserved. Proactive Suggestions 1
31

Proactive Suggestions

Jan 08, 2017

Download

Mobile

Gaprot
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Proactive Suggestions

1

Page 2: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Proactive Suggestions

先読みした提案

直前のユーザ⾏動から推薦する

2

Page 3: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

iOS10 NEW

• Location

• Web (location)

• Media App

• Ride-sharing

3

Page 4: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

<iOS10

• proactive assistant (9)

• deep search (9)

• NSUserActivity Handoff (8)

• NSUserActivity Spotlight (9)

4

Page 5: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

⽬次

• Location Suggestions

• Media App Suggestions

5

Page 6: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

⽬次

• Location Suggestions

• Media App Suggestions

6

Page 7: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Location Suggestions

7

Page 8: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Location Suggestions

• 位置情報に関するサジェスト、アプリ連携

• 通常マップへの連携⽅法は割りと簡単

• NSUserActivityのmapItemにセット

• WEBページでschema.orgにそってセット

8

Page 9: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

NSUserActivity

• NSUserActivity

• mapItemが追加されている

9

Page 10: Proactive Suggestions

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

Page 11: Proactive Suggestions

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

Page 12: Proactive Suggestions

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

Page 13: Proactive Suggestions

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

Page 14: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Location Suggestions• 連携箇所

• App Switcherでのバナー表⽰

• mapアプリ表⽰時のサジェスト

• Quicktypeのサジェスト

• iMessageでは特定ワードで補完候補表⽰

• UITextFieldと情報属性(textContentType)⼀致が必要

14

Page 15: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Location Suggestions• App Switcherでのバナー表⽰

15

Page 16: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Location Suggestions• google mapをよく使っていたら

16

Page 17: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Location Suggestions• mapアプリ表⽰時のサジェスト

17

Page 18: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Location Suggestions• Quicktypeのサジェスト

• textContentTypeの設定必要

18

Page 19: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

⽬次

• Location Suggestions

• Media App Suggestions

19

Page 20: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Media App Suggestions

20

Page 21: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

Media App Suggestions

• Mediaを扱うアプリに対するサジェスト

• ある条件下で推薦するアプリとして扱う

• スポットライト、Today View

• ロック画⾯上に表⽰する

21

Page 22: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

条件• 推薦条件

• ヘッドホンやBluetoothデバイスを接続

• CarPlayに接続

• 位置(⾃宅/職場)を検知した際

かつ利⽤状況による

22

Page 23: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

対象にするには?

23

Page 24: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

対象にするには?

• メディアを扱う(Audio/Video)

• MPPlayableContentManagerに対応する

24

Page 25: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

MPPlayable ContentManager

• playableContentManager

• ロック画⾯で推薦時に通る

• MPNowPlayingInfoCenter

• nowPlayingInfoに情報をセットする

• コントール

• バックグラウンド再⽣と同じ

25

Page 26: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

動作例

• ユーザの利⽤状況を⾒て出す

• 何起因で出てきてんだか分からなくて難しい

26

Page 27: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

WWDC VIDEOより

27

proactive assistant

再⽣中ではない

Page 28: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.28

Page 29: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.29

Page 30: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

まとめ

30

Page 31: Proactive Suggestions

Copyright © Up-frontier, Inc. All rights reserved.

まとめ

• Location Suggestions

• Media App Suggestions

31