<?xml version="1.0" encoding="utf-8"?>

Manage foreground notifications gracefully when the app is in use

Manage foreground notifications gracefully when the app is in use Bad Practice
Manage foreground notifications gracefully when the app is in use Best Practice

When your app is in the foreground, it's crucial to handle notifications gracefully. Present the information in a way that is discoverable yet unintrusive. This can be achieved by incrementing a badge count or subtly inserting new data into the current view. For instance, consider a messaging app. If users are actively using the app and a new message arrives, instead of sending a disruptive notification, the app could update the unread message count or seamlessly insert the new message into the current conversation view. This approach ensures users are informed without unnecessary distractions, creating a smooth and uninterrupted user experience.

Improve your UX & Product skills with interactive courses that actually work