Google’s dynamic Stay Updates notification class is absolutely useful within the newest Android 16 QPR1 beta.
Stay Updates, for these unaware, is Google’s tackle Apple’s Stay Actions. It is a new notification class that will get elevated permissions and, in consequence, entry to extra display actual property. This contains entry to prime areas like your Pixel’s standing bar, lock display and even the At all times on Show (AOD).
Associated
Android 16’s subsequent huge replace will actually convey Pixel’s stay notifications to life
Full Stay Updates help is stay in QPR1 Beta 2
The notification class is predicted to totally go stay with the primary secure Android 16 quarterly replace, which ought to land someday in September this 12 months. We already know that Stay Updates will not help music/audio apps, however the likes of meals supply, ride-hailing, and navigation apps are all excellent candidates that may provide dynamic lock display, AOD, and standing bar notifications.
We’re sure as a result of Google has explicitly acknowledged the aforementioned app classes as prime examples of actions for which Stay Updates are supposed. To additional that time, the tech big not too long ago launched a developer-focused useful resource (by way of Mishaal Rahman/Android Authority) — one that gives all the precise technical necessities for Stay Updates and the way builders can start leveraging the brand new notification class.
We’re already aware about a number of the necessities shared by the tech big. If notifications need to be elevated to the Stay Updates standing, they should:
- Use the Customary/No Model, BigTextStyle, CallStyle, or ProgressStyle template.
- Request the POST_PROMOTED_NOTIFICATIONS permission.
- Name the requestPromotedOngoing API to raise the notification to a Stay Replace.
- Be marked as an ongoing exercise.
- Embrace a brief abstract to be displayed within the standing bar chip.
There are different minor necessities, however the aforementioned ones are the first ones that builders have to observe.
The tech big additionally reiterated applicable makes use of for Stay Updates, alongside a transparent instance of what the notification class would seem like when highlighting Google Maps’ turn-by-turn navigation.
Use Stay Updates for actions which can be ongoing, user-initiated and time delicate.
- Acceptable makes use of: Lively navigation, ongoing telephone calls, energetic rideshare monitoring, and energetic meals supply monitoring.
- Inappropriate makes use of: Advertisements, promotions, chat messages, alerts, upcoming calendar occasions, and fast entry to app options.
The tech big additionally directed builders to mechanically set off Stay Updates for scheduled occasions (flight, live performance, and so on.) solely when the stated occasion is imminent. Customers will then have the choice to maintain monitoring the occasion, or do away with it with an ‘Unpin’ motion throughout the notification.
“Exhibiting a boarding go notification is suitable many hours earlier than a person’s flight, however the notification ought to turn into a Stay Replace solely when the person has a urgent want, corresponding to after they have arrived on the airport or venue or as soon as boarding has begun,” wrote Google. Equally, if a person swipes away a Stay Replace, the app ought to be designed in such a method that it doesn’t resurface it.
Stay Updates will land on Put on OS gadgets someday subsequent 12 months. Whether or not they’ll have completely different necessities and/or optimizations for smaller shows stays to be seen.
Associated
Android 16’s iOS-like Stay Updates to make their solution to wearables subsequent 12 months
Coming to your telephone subsequent month