Google I/O 2017 - Instant Apps 介紹

Archer Wei
Jul 20, 2017 · 5 min read

Google 版 Instant Apps 來了!你也可以開發

Google 在2017 的開發者大會上正式發佈了Instant Apps技術

Instant Apps可以幫助使用者更快速體驗原生App的部分內容
而不用下載安裝整個App
只需要下載所需要使用的部分程式碼以及資源檔
即可立即體驗應用程式的部分內容 吸引更多用戶安裝應用程式

利用URL觸發

這表示可以從更多地方進入Instant Apps
藉此接觸更多新用戶
例如:搜尋結果、社群媒體分享、訊息、beacones、NFC、應用程式甚至其他Instant Apps。

開發Instant Apps

環境

  • Android Studio 3.0 以上
  • Gradle 4.0
  • Android Plugin for Gradle 3.0
  • Instant Apps API

implementation “com.google.android.instantapps:instantapps:1.0.0”

決定use case

設計Instant App 最重要的部分是設定好使用情境
ex.訂票、付款、查詢…
Instant App 由目標任務驅使,確保服務能符合使用者立即需求
流程上設計盡量簡潔,讓使用者無痛完成任務

注意

Instant App 不要讓使用者用起來
覺得像是”試用版”或”閹割版”
(這反而會降低使用者安裝完整版的意願)
應該讓Instant App使用者和完整安裝的使用者
在同一個功能上 有相同的體驗
讓使用者安裝後能夠無痛使用

應該著重在思考User會如何使用你的Instant App
他們從哪些地方而來,User常分享什麼樣的內容
分享出去的URL 內容該如何呈現

也許同一個App的Instant App會有幾個不同的切入點
而且不一定從launcher開始

  • side entry 從分享者正在使用的頁面(內容)、搜尋的主題頁面進入
  • home entry 從App首頁進入
傳統App和 Instant Apps 在 Feature 分裝上的差異

為你的App減肥

每個Instant App任務Size要在4MB以下
重新思考哪些內容對使用者而言才是重要的
只保留有用的Code、優化資源、適當做proguard

提供深層連結(deep linking)

如果已經實作了很複雜的App(有很多不同的使用流程)
建議使用深層連結來讓任使用者產出的URL
可以導向App中特定的頁面或流程
尤其當我們在建立Instant App時
深層連結的使用就更為必要了


APP Link

App link
Handling App Links

模組化/重構 App
可能遭遇的問題
部署

以上幾點可能要等到自己有實作時再補充了


Google I/O 給開發者的建議

串接 Google Payment API

開發者可以透過Google Payment API 在 Instant App中
接受使用者儲存在Google帳號中的信用卡來進行付款
讓消費變得更快更方便(更無感)

Play Install API

可以讓使用Instant App 同時進行安裝
完成後無縫接軌完整應用

User 可以一邊繼續功能,同時安裝完整版

引導使用者安裝完整版

完整而清楚的安裝指示是非常重要的
說到底開發 Instant Apps 的目的不就是為了吸引更多使用者下載你的App嗎

在頁面上直接展示安裝按鈕

讓按鈕按起來像是UI的一部份而不影響功能使用
(Instant App 可以使用Navigation Drawer)

頁面上清楚而不影響使用的提示User安裝完整版

提示視窗

也可以跳出視窗要求使用者安裝完整版
但必須清楚讓使用者知道為何需要安裝完整版
例如要使用儲存/查詢、我的最愛內容…等進階功能

與傳統App流程比較

使用者可以在為進行安裝
甚至未登入的狀態下進行消費

流程的改變讓行銷人員
能夠更專注在如何提高銷售 而非只是提高App下載量

可以直接在Instant App 操作時完成消費

參考

Instant App Demo
An introduction to Android Instant Apps
https://developer.android.com/topic/instant-apps/index.html

)
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade