The challenge
A spiritual app calls for a calm design. People should be able to return out of habit, without pressure from notifications.
The client also wanted gentle background music. Browsers block sound on page load until the user interacts, so playback needed to respect that behaviour.
Solution
I built a single screen with a quote and prayer toggle, a central card for the daily content and a calm background. The layout keeps the focus on the text.
Music becomes available after the user first taps, clicks or uses the music control, in line with Chrome, Safari and Firefox policies. After that interaction, background audio can play without a blocked playback message.
Music and browser policies
Browsers require interaction before playing audio. Attempting to autoplay music on page load can leave the player silent or produce a console error.
I set up audio to initialise after the first tap or click, as browsers require. A visible control lets users know music is available and gives them control over when it plays.
The result for the client
The app is live on its own domain and gives the client a finished product to share as an example of calm, considered design.
The design supports the intended daily ritual. Daily active user figures are unavailable publicly.
It feels exactly as calm as we hoped. Users can find their way around and are happy to return.
