Thursday, October 4, 2018

Make The Almost Of Notifications Amongst The Redesigned Article Of Apparel Bone Yesteryear Google

Posted past times Hoi Lam, Lead Developer Advocate, Wear OS past times Google

Today nosotros announced that we are evolving the blueprint of Wear OS past times Google to assistance you lot larn the most out of your fourth dimension - providing quicker access to your information in addition to notifications. Notifications tin come upwards from the automatic bridging of the phone's notification or last generated past times a local Wear app running on the watch. Whether you lot are a band developer, a Wear app developer, or both, at that spot are a few things you lot volition take away to know most the novel notification stream.

The novel notification stream

Until now, each notification took upwards the entire enshroud inwards Wear OS. Although this provided to a greater extent than infinite to include things similar inline action, it also meant it took a long fourth dimension for the user to larn through all their notifications. The novel notification flow is to a greater extent than compact, in addition to tin display multiple notifications on the same screen. This agency users tin procedure their notification streams to a greater extent than quickly.

What this agency for developers

  • Concise notification content is fifty-fifty to a greater extent than important. The novel unexpanded notification on Wear volition exhibit upwards to 3 lines of text. Because this is already to a greater extent than information than a unmarried business unexpanded notification on the user's phone, if your notification industrial plant on the band unexpanded, it should last fine on Wear.
  • Brand notification alongside color. The default championship in addition to icon color for notification is white. Developers tin straightaway bring their build identities past times customizing the color of the championship in addition to icon tint using setColor.
  • Custom notification layout volition no longer last supported. Previously developers used setDisplayIntent to inflate a custom activity within the notification stream. We possess got establish that the custom layout oftentimes does non accept into concern human relationship of the device course of report factor, in addition to is hard to maintain upwards to appointment every bit Wear OS's notification sense evolves. As a result, nosotros volition no longer back upwards this inwards notifications.
  • Inline activity is beingness reviewed. To relieve space, the novel layout no longer display inline activity inwards the flow in addition to setHintDisplayActionInline volition last ignored. Users tin maintain to access notification actions including inline activity when they tap to expand the notification. Our blueprint squad is reviewing whether nosotros should include inline activity inwards a hereafter release. As a result, earlier a determination is made, nosotros are non deprecating the related APIs. We volition maintain the developer community updated inwards due course.

As always, the current best practices for notification nonetheless apply. In particular, for messaging apps developers, nosotros strongly encourage the role of MessagingStyle notification in addition to enabling on-device Smart Reply through setAllowGeneratedReplies.

We volition source rolling these changes out inwards the adjacent month, in addition to then sentry for updates on your Wear OS past times Google smartwatch!

Related Post

Make The Almost Of Notifications Amongst The Redesigned Article Of Apparel Bone Yesteryear Google
4/ 5
Oleh