Implement notification handlers in your mobile or web app code. Learn to process FCM data payloads correctly when the app is in the background or foreground.