google io 2017 recap

43
Google IO 2017 Vishal Nayak

Upload: vishal-nayak

Post on 21-Jan-2018

271 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Google IO 2017 Recap

Google IO 2017

Vishal Nayak

Page 2: Google IO 2017 Recap

Contents

Page 3: Google IO 2017 Recap

Instant Apps

• Introduction• One Codebase• Structure of a Instant App• Implementation requirements• Do’s and Don’ts• Caveats

Page 4: Google IO 2017 Recap

Introduction

• To get the user engaged with your content and complete a task, not to get

user to install your app

• To increase the discovery of your content through URLs and search results

Page 5: Google IO 2017 Recap

One Codebase

Page 6: Google IO 2017 Recap

Structure of an Instant App

Page 7: Google IO 2017 Recap

Implementation requirements

• Remove unnecessary code and resources from your app.

• Support Android app links

• Refactor app into feature modules

• Implement runtime permissions

• Implement Smart Lock for passwords

• For payments, use Google payments API

• Define entry points for your app

Page 8: Google IO 2017 Recap

Do’s and Don’ts

• Put sign in when users understand the value of signing in, not at the beginning of

instant app launch

• Allow users to complete a task – don’t prompt for installation just before task completion

• Installation prompting inside the instant app - Explicit and Implicit

• Mobile holdback on play console : define percentage of users that should go to the

mobile web and percentage that gets the instant app

• Use Google analytics for Firebase for tracking

• Don’t create additional splash screens

• Don’t branch your UI - user should be faced with as little re-learning post installation as

possible

• Provide a "share" action within your app that allows users to share your instant app's

URL.

Page 9: Google IO 2017 Recap

Caveats

• Instant Apps are currently available on devices running

Android 6.0 (API level 23) and higher.

• 4MB download limit for Instant apps (validation occurs when

you upload your instant app to the production track of the

Google Play Console)

• Users can opt out of Instant apps via: Settings > Google >

Instant apps.

Page 10: Google IO 2017 Recap

Android Omg – What’s new

• Notifications in Android O

• Google Play app signing

• Other new stuff…

Page 11: Google IO 2017 Recap

Notifications in Android O

Page 12: Google IO 2017 Recap

Need for change

• People often want only some notifications from an app, but

not all of them

• Many people don’t adjust their settings, even if they know

they can

• When a notification is addressed right away it is easy to

forget later

• Only 2 types of notifications are valued

People to People notifications

Reminders

Page 13: Google IO 2017 Recap

Notification Channels

• App defines a channel for each type of notification it sends

• User has channel-level notification controls

Page 14: Google IO 2017 Recap

Notification Model

Page 15: Google IO 2017 Recap

Notification Priority Levels

Page 16: Google IO 2017 Recap

Notification Settings

Page 17: Google IO 2017 Recap

Visual Hierarchy

Page 18: Google IO 2017 Recap

Snoozing

Page 19: Google IO 2017 Recap

Google Play App Signing

Page 20: Google IO 2017 Recap

Current Signing process

If you lose you signing key it cannot be retrieved

Page 21: Google IO 2017 Recap

Google Play App Signing

Google Play app signing helps developers to secure their app

signing keys

Page 22: Google IO 2017 Recap

How to?

Page 23: Google IO 2017 Recap

Generating upload key

Page 24: Google IO 2017 Recap

Resetting upload key

Contact the Google Play Developer Support via

the Help center

https://support.google.com/googleplay/android-

developer

Page 25: Google IO 2017 Recap

App Optimizations (Beta)

Page 26: Google IO 2017 Recap

Derived APKs

Page 27: Google IO 2017 Recap

Auto multiple APKs

• APKs are smaller

• Can support more devices

• No need to create multiple APKs during development

Page 28: Google IO 2017 Recap

Testing

Page 29: Google IO 2017 Recap

Testing (contd..)

Page 30: Google IO 2017 Recap

Other new stuff…..

Page 31: Google IO 2017 Recap

Autofill framework in Android O

Page 32: Google IO 2017 Recap

Annotate XML for Auto fill

Page 33: Google IO 2017 Recap

Architecture Guide and Components

• Google’s opinion on how

an app architecture

should be built

• Fundamental

Components which help

you build your app

• https://developer.android

.com/topic/libraries/archi

tecture/index.html

Page 34: Google IO 2017 Recap

Firebase – What’s new

• Firebase Performance Monitoring

• Firebase Analytics – Stream View and Debug View

Page 35: Google IO 2017 Recap

Firebase Performance Monitoring

Page 36: Google IO 2017 Recap

Use traces to get performance context

• Using custom traces, you can understand the context in which performance

issues take place, and more easily address them.

• You can also make use of automated traces, like app startup time.

Page 37: Google IO 2017 Recap

Keep your eyes on network behavior

• Automated monitoring of HTTP/S requests.

• Track response times, success rates, payload sizes and latency.

Page 38: Google IO 2017 Recap

Pinpoint the origin of issues

Break down both trace and network data into dimensions like app version,

country, device and OS level to get to the bottom of issues.

Page 39: Google IO 2017 Recap

Automatic traces

• App start traces, which measure the time between when

the user opens the app and when the app is responsive.

• App in background traces, which measure the time

when the app is running in the background.

• App in foreground traces, which measure the time when

the app is running in the foreground and available to the

user.

Page 40: Google IO 2017 Recap

Firebase Analytics - Stream View

Page 41: Google IO 2017 Recap

Firebase Analytics - Debug View

Page 42: Google IO 2017 Recap

References

• Android O Notifications:

https://developer.android.com/preview/features/notification-channels.html

https://developer.android.com/preview/features/notification-badges.html

• Google Play App Signing:

https://support.google.com/googleplay/android-developer/answer/7384423?hl=en

• Auto fill Framework in Android O:

https://developer.android.com/preview/features/autofill.html

• Architecture Components and Guide:

https://developer.android.com/topic/libraries/architecture/guide.html

• Firebase Performance Monitoring, Stream View and Debug View:

https://firebase.google.com/docs/perf-mon/

https://support.google.com/firebase/answer/7229836?hl=en

https://firebase.google.com/docs/analytics/debugview

• Android Instant Apps:

https://developer.android.com/topic/instant-apps/index.html

Page 43: Google IO 2017 Recap