What are the best approaches for testing notifications in Android apps under different conditions?

My Android app includes a service that sends notifications based on various triggers, like the number of times the app is run.

Since notifications can be sent at different times depending on the scenario, I’m looking for reliable methods for testing notifications to ensure they’re delivered at the right moments.

Does Android provide native tools or recommended practices for accurately testing notifications across multiple use cases?