Google IO 2017 Recap
-
Upload
vishal-nayak -
Category
Software
-
view
271 -
download
0
Transcript of Google IO 2017 Recap
![Page 1: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/1.jpg)
Google IO 2017
Vishal Nayak
![Page 2: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/2.jpg)
Contents
![Page 3: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/3.jpg)
Instant Apps
• Introduction• One Codebase• Structure of a Instant App• Implementation requirements• Do’s and Don’ts• Caveats
![Page 4: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/4.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/5.jpg)
One Codebase
![Page 6: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/6.jpg)
Structure of an Instant App
![Page 7: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/7.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/8.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/9.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/10.jpg)
Android Omg – What’s new
• Notifications in Android O
• Google Play app signing
• Other new stuff…
![Page 11: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/11.jpg)
Notifications in Android O
![Page 12: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/12.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/13.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/14.jpg)
Notification Model
![Page 15: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/15.jpg)
Notification Priority Levels
![Page 16: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/16.jpg)
Notification Settings
![Page 17: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/17.jpg)
Visual Hierarchy
![Page 18: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/18.jpg)
Snoozing
![Page 19: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/19.jpg)
Google Play App Signing
![Page 20: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/20.jpg)
Current Signing process
If you lose you signing key it cannot be retrieved
![Page 21: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/21.jpg)
Google Play App Signing
Google Play app signing helps developers to secure their app
signing keys
![Page 22: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/22.jpg)
How to?
![Page 23: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/23.jpg)
Generating upload key
![Page 24: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/24.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/25.jpg)
App Optimizations (Beta)
![Page 26: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/26.jpg)
Derived APKs
![Page 27: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/27.jpg)
Auto multiple APKs
• APKs are smaller
• Can support more devices
• No need to create multiple APKs during development
![Page 28: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/28.jpg)
Testing
![Page 29: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/29.jpg)
Testing (contd..)
![Page 30: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/30.jpg)
Other new stuff…..
![Page 31: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/31.jpg)
Autofill framework in Android O
![Page 32: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/32.jpg)
Annotate XML for Auto fill
![Page 33: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/33.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/34.jpg)
Firebase – What’s new
• Firebase Performance Monitoring
• Firebase Analytics – Stream View and Debug View
![Page 35: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/35.jpg)
Firebase Performance Monitoring
![Page 36: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/36.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/37.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/38.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/39.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/40.jpg)
Firebase Analytics - Stream View
![Page 41: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/41.jpg)
Firebase Analytics - Debug View
![Page 42: Google IO 2017 Recap](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/42.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022052405/5a64ba747f8b9a824a8b4701/html5/thumbnails/43.jpg)